summaryrefslogtreecommitdiff
path: root/include/asterisk/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/time.h')
-rw-r--r--include/asterisk/time.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/time.h b/include/asterisk/time.h
index d04183354..7e1726e72 100644
--- a/include/asterisk/time.h
+++ b/include/asterisk/time.h
@@ -23,8 +23,9 @@
#ifndef _ASTERISK_TIME_H
#define _ASTERISK_TIME_H
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
-#include <stdlib.h>
+#endif
#include "asterisk/inline_api.h"