]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
For GNU libc 2.2 and newer, ensure that <sys/types.h>
authorJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 08:40:55 +0000 (08:40 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 15 Jun 2002 08:40:55 +0000 (08:40 +0000)
has been included before this file.

src/system.h

index 6e11e44bdce0fcdb2f410f35789538882a8660c3..aae5675ea36aba5f1da26f7733b91207b0efbd2e 100644 (file)
@@ -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
 
 /* 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)