summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-06-15 08:40:55 +0000
committerJim Meyering <jim@meyering.net>2002-06-15 08:40:55 +0000
commit13221a5a13712279d4f3a0186540ec58d0f5c81a (patch)
tree50ca9dbe5b0c800a4001ae8144fed60fca0b867f
parent3351c8aada1d86446513c10b5e0b04160165ca17 (diff)
downloadcoreutils-13221a5a13712279d4f3a0186540ec58d0f5c81a.tar.xz
For GNU libc 2.2 and newer, ensure that <sys/types.h>
has been included before this file.
-rw-r--r--src/system.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index 6e11e44bd..aae5675ea 100644
--- a/src/system.h
+++ b/src/system.h
@@ -1,5 +1,5 @@
/* system-dependent definitions for fileutils, textutils, and sh-utils packages.
- Copyright (C) 1989, 1991-2001 Free Software Foundation, Inc.
+ Copyright (C) 1989, 1991-2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,6 +17,12 @@
/* Include sys/types.h before this file. */
+#if 2 <= __GLIBC__ && 2 <= __GLIBC_MINOR__
+# if ! defined _SYS_TYPES_H
+you must include <sys/types.h> before including this file
+# endif
+#endif
+
#include <sys/stat.h>
#if !defined(HAVE_MKFIFO)