aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1992-07-04 21:45:42 +0000
committerSean Eric Fagan <sef@cygnus>1992-07-04 21:45:42 +0000
commitc5ab244b6c1f56cc6aebce0e069081f9e6c7710d (patch)
treed0be1fe96cf075f985a57c3aa4dad6011a9266e3
parent2af231b836952be9b33fd441a25ee24d876c1494 (diff)
downloadgdb-c5ab244b6c1f56cc6aebce0e069081f9e6c7710d.zip
gdb-c5ab244b6c1f56cc6aebce0e069081f9e6c7710d.tar.gz
gdb-c5ab244b6c1f56cc6aebce0e069081f9e6c7710d.tar.bz2
Don't really want <sys/file.h> on a SysV system, and need to make sure
a couple of necessary defines are done.
-rw-r--r--bfd/hosts/i386v.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/bfd/hosts/i386v.h b/bfd/hosts/i386v.h
index eda2f3c..328703b 100644
--- a/bfd/hosts/i386v.h
+++ b/bfd/hosts/i386v.h
@@ -6,19 +6,26 @@
#include <utime.h>
#include <ctype.h>
#include <string.h>
-#include <sys/file.h>
+#include <unistd.h>
+
#ifndef O_ACCMODE
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
#endif
+#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_CUR 1
+#endif
+
+#ifndef L_SET
+# define L_SET SEEK_SET
+#endif
#define POSIX_UTIME
/* Some things that need to be defined in order to make code written for
BSD Unix compile under System V Unix. */
-#include <memory.h>
+/*#include <memory.h>*/
#define bcmp(b1,b2,len) memcmp(b1,b2,len)
#define bcopy(src,dst,len) memcpy(dst,src,len)
#define bzero(s,n) memset(s,0,n)