]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define off_t and mode_t.
authorUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:24:04 +0000 (03:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:24:04 +0000 (03:24 +0000)
misc/sys/mman.h

index 8db82c87c65db012ec7315024076b51d7d7b0b5e..f840caf35613181bad550399b11414720fa9f761 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for BSD-style memory management.
-   Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+   Copyright (C) 1994-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #define __need_size_t
 #include <stddef.h>
 
+#ifndef off_t
+# ifndef __USE_FILE_OFFSET64
+typedef __off_t off_t;
+# else
+typedef __off64_t off_t;
+# endif
+# define off_t off_t
+#endif
+
+#ifndef mode_t
+typedef __mode_t mode_t;
+# define mode_t mode_t
+#endif
+
 #include <bits/mman.h>
 
 /* Return value of `mmap' in case of an error.  */