projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3ab13
)
src/liboping.c: Only include <stdint.h> if the configure script found it.
author
Vladimir V. Melnikov
<wlad.w.m@gmail.com>
Mon, 23 Mar 2009 08:29:31 +0000
(09:29 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 23 Mar 2009 08:29:31 +0000
(09:29 +0100)
src/liboping.c
patch
|
blob
|
history
diff --git
a/src/liboping.c
b/src/liboping.c
index
47c8279
..
f00e0b6
100644
(file)
--- a/
src/liboping.c
+++ b/
src/liboping.c
@@
-25,7
+25,6
@@
# include <stdlib.h>
# include <stdio.h>
# include <string.h>
-# include <stdint.h>
# include <inttypes.h>
# include <errno.h>
# include <assert.h>
@@
-33,6
+32,10
@@
# error "You don't have the standard C99 header files installed"
#endif /* STDC_HEADERS */
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
@@
-61,6
+64,7
@@
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
+
#if HAVE_NETDB_H
# include <netdb.h>
#endif