This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
posix/sys/types.h does not include stdint.h
- From: Dinar Temirbulatov <dtemirbulatov at ru dot mvista dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 03 Mar 2005 12:59:10 +0300
- Subject: posix/sys/types.h does not include stdint.h
hi,
we have some type dependents in our inet part of the glibc for ISO C99
integer types besides /netinet/in.h, here is the patch that solves such
dependence.
thanks, Dinar.
diff -ru glibc-2.3.3.ORIGINAL/inet/netinet/in.h glibc-2.3.3/inet/netinet/in.h
--- glibc-2.3.3.ORIGINAL/inet/netinet/in.h 2004-08-07 22:21:41.000000000 +0400
+++ glibc-2.3.3/inet/netinet/in.h 2005-02-11 16:05:19.000000000 +0300
@@ -20,9 +20,8 @@
#define _NETINET_IN_H 1
#include <features.h>
-#include <stdint.h>
#include <sys/socket.h>
-#include <bits/types.h>
+#include <sys/types.h>
__BEGIN_DECLS
diff -ru glibc-2.3.3.ORIGINAL/posix/sys/types.h glibc-2.3.3/posix/sys/types.h
--- glibc-2.3.3.ORIGINAL/posix/sys/types.h 2002-10-24 03:48:51.000000000 +0400
+++ glibc-2.3.3/posix/sys/types.h 2005-02-11 16:08:15.000000000 +0300
@@ -28,6 +28,7 @@
__BEGIN_DECLS
+#include <stdint.h>
#include <bits/types.h>
#ifdef __USE_BSD