File gptfdisk-gcc47.patch of Package gptfdisk

Index: gptfdisk-0.8.2/diskio-unix.cc
===================================================================
--- gptfdisk-0.8.2.orig/diskio-unix.cc
+++ gptfdisk-0.8.2/diskio-unix.cc
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
 #ifdef __linux__
 #include "linux/hdreg.h"
openSUSE Build Service is sponsored by