diff options
author | Roderick W. Smith <rodsmith@rodsbooks.com> | 2013-10-12 19:07:16 -0400 |
---|---|---|
committer | Roderick W. Smith <rodsmith@rodsbooks.com> | 2013-10-12 19:07:16 -0400 |
commit | 24bba6e4f3a57cd8b4812c1976190356919d9c47 (patch) | |
tree | 3505ebb733a71901bdb930d5e53095be525bb8d0 /diskio-unix.cc | |
parent | 0fde58b966f37807260ad0dd8997e3f0c824d39c (diff) | |
download | sgdisk-24bba6e4f3a57cd8b4812c1976190356919d9c47.tar.gz |
Fixed bug in sgdisk that could cause segfault when passing an invalid
partition number to -i/--info; added patch to fix compiling problems
with some versions of GCC.
Diffstat (limited to 'diskio-unix.cc')
-rw-r--r-- | diskio-unix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/diskio-unix.cc b/diskio-unix.cc index 1bdb77b..388a04d 100644 --- a/diskio-unix.cc +++ b/diskio-unix.cc @@ -19,6 +19,7 @@ #include <string.h> #include <string> #include <stdint.h> +#include <unistd.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h> |