summaryrefslogtreecommitdiff
path: root/editors/chexedit/files/patch-src-init.c
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-07-12 15:01:45 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-07-12 15:01:45 +0000
commitdaffe00d4a57c0ef6a21947a8121b8d233d8d3a5 (patch)
tree713942325bda393305edb21d46cd7f38d213aebc /editors/chexedit/files/patch-src-init.c
parent- Update to 20110724.002 (diff)
- Trim Makefile headers
- Drop ABI versions from LIB_DEPENDS - OptionsNG - Pet portlint - Switch to dynamic plist where useful - Canonicalize patch names - Fix DOS line endings in patch files
Diffstat (limited to 'editors/chexedit/files/patch-src-init.c')
-rw-r--r--editors/chexedit/files/patch-src-init.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/chexedit/files/patch-src-init.c b/editors/chexedit/files/patch-src-init.c
new file mode 100644
index 000000000000..9aaaee5c9745
--- /dev/null
+++ b/editors/chexedit/files/patch-src-init.c
@@ -0,0 +1,23 @@
+--- src/init.c.orig Sun Aug 8 09:56:11 1999
++++ src/init.c Sat Mar 17 22:23:57 2001
+@@ -33,6 +33,11 @@
+ #include <sys/disklabel.h>
+ #endif
+
++#if defined(__FreeBSD__)
++#include <fcntl.h>
++#include <sys/disklabel.h>
++#endif
++
+ extern char **environ;
+
+
+@@ -463,7 +468,7 @@
+ filestat.st_size = DEFAULT_BUFFER_SIZE;
+ }
+
+-#elif defined (__OpenBSD__)
++#elif defined (__OpenBSD__) || defined(__FreeBSD__)
+ else if (Globals.fixed_disk)
+ {
+