summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/os_types.h9
-rw-r--r--src/input/input_http.c6
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/os_types.h b/lib/os_types.h
index 0a49a743d..2f5f0c99c 100644
--- a/lib/os_types.h
+++ b/lib/os_types.h
@@ -96,6 +96,15 @@
typedef long int64_t;
typedef unsigned long int64_t;
+#elif defined(HOST_OS_DARWIN)
+
+ /* Darwin (Mac OS X) needs __STDC_LIBRARY_SUPPORTED__ for SCNx64 and
+ * SCNxMAX macros */
+# ifndef __STDC_LIBRARY_SUPPORTED__
+# define __STDC_LIBRARY_SUPPORTED__
+# endif /* __STDC_LIBRARY_SUPPORTED__ */
+# include <inttypes.h>
+
#else
/*
diff --git a/src/input/input_http.c b/src/input/input_http.c
index 303ef4510..ddbe6a2cf 100644
--- a/src/input/input_http.c
+++ b/src/input/input_http.c
@@ -19,7 +19,7 @@
*
* input plugin for http network streams
*
- * $Id: input_http.c,v 1.98 2004/09/20 19:30:04 valtri Exp $
+ * $Id: input_http.c,v 1.99 2004/09/28 15:38:11 athp Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -39,10 +39,6 @@
#include <errno.h>
#endif /* WIN32 */
-#ifdef HOST_OS_DARWIN
-#define __STDC_LIBRARY_SUPPORTED__
-#endif /* HOST_OS_DARWIN */
-
#include <sys/time.h>
#define LOG_MODULE "input_http"