]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define uid_t, gid_t, and mode_t.
authorUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:36:58 +0000 (03:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:36:58 +0000 (03:36 +0000)
sysvipc/sys/ipc.h

index f1ba7ff188ea75ca9332e7713d7400884133f74c..275564b95df5fc6c767cdb3fe52430ac7edc3b90 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 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
 /* Get system dependent definition of `struct ipc_perm' and more.  */
 #include <bits/ipc.h>
 
+#ifndef uid_t
+typedef __uid_t uid_t;
+# define uid_t uid_t
+#endif
+
+#ifndef gid_t
+typedef __gid_t gid_t;
+# define gid_t gid_t
+#endif
+
+#ifndef mode_t
+typedef __mode_t mode_t;
+# define mode_t mode_t
+#endif
+
+#ifndef key_t
+typedef __key_t key_t;
+# define key_t key_t
+#endif
+
 #if !defined __USE_SVID && !defined __USE_XOPEN && __GNUC__ >= 2
 # warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
 #endif