summaryrefslogtreecommitdiff
path: root/diskio-unix.cc
diff options
context:
space:
mode:
authorRoderick W. Smith <rodsmith@rodsbooks.com>2013-10-12 19:07:16 -0400
committerRoderick W. Smith <rodsmith@rodsbooks.com>2013-10-12 19:07:16 -0400
commit24bba6e4f3a57cd8b4812c1976190356919d9c47 (patch)
tree3505ebb733a71901bdb930d5e53095be525bb8d0 /diskio-unix.cc
parent0fde58b966f37807260ad0dd8997e3f0c824d39c (diff)
downloadsgdisk-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.cc1
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>