summaryrefslogtreecommitdiff
path: root/gl/sys_types.in.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-09-21 15:49:06 +0200
committerSimon Josefsson <simon@josefsson.org>2011-09-21 15:49:06 +0200
commit5fdaefe2cfd2e38a83fee58c6a2b852d5e124d69 (patch)
treeaba3494f385bea407fd4b4f840b8b9cdfef711c2 /gl/sys_types.in.h
parent0f206a54a53abe0ca38216081d587cf98096fb26 (diff)
downloadgnutls-5fdaefe2cfd2e38a83fee58c6a2b852d5e124d69.tar.gz
Update gnulib files.
Diffstat (limited to 'gl/sys_types.in.h')
-rw-r--r--gl/sys_types.in.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/gl/sys_types.in.h b/gl/sys_types.in.h
new file mode 100644
index 0000000000..63389de384
--- /dev/null
+++ b/gl/sys_types.in.h
@@ -0,0 +1,40 @@
+/* Provide a more complete sys/types.h.
+
+ Copyright (C) 2011 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
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#if __GNUC__ >= 3
+@PRAGMA_SYSTEM_HEADER@
+#endif
+@PRAGMA_COLUMNS@
+
+#ifndef _@GUARD_PREFIX@_SYS_TYPES_H
+
+/* The include_next requires a split double-inclusion guard. */
+#@INCLUDE_NEXT@ @NEXT_SYS_TYPES_H@
+
+#ifndef _@GUARD_PREFIX@_SYS_TYPES_H
+#define _@GUARD_PREFIX@_SYS_TYPES_H
+
+/* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>. */
+/* But avoid namespace pollution on glibc systems. */
+#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ && ! defined __GLIBC__
+# include <stddef.h>
+#endif
+
+#endif /* _@GUARD_PREFIX@_SYS_TYPES_H */
+#endif /* _@GUARD_PREFIX@_SYS_TYPES_H */