aboutsummaryrefslogtreecommitdiffstats
path: root/editors/chexedit/files/patch-src_init.c
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2001-03-17 16:33:32 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2001-03-17 16:33:32 +0000
commit28bcf4c281e05ad95c7557633785bf962ef7d15e (patch)
tree465e321a9d09af704afb14082a9082d83f7d025c /editors/chexedit/files/patch-src_init.c
parent2a80c2c568dc1af42128134f5986e0a59c1567fe (diff)
Full screen text mode Hex editor using the [n]curses library
PR: ports/24761 Submitted by: Roman Shterenzon <roman@xpert.com>
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)
+ {
+