aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-01 22:11:55 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-01 22:11:55 +0000
commitb72c011da6ec4a79a956bbe695f5ef81f8d2cc2a (patch)
tree17c804a9c8de8af367f8e25c9c037bbfed87c7df
parent704fa73d21752ce5450494e55e0b55d5abae2971 (diff)
issue #5558
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6940 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xChangeLog3
-rwxr-xr-xdevicestate.c1
-rwxr-xr-xstdtime/localtime.c24
3 files changed, 17 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c7fa35ee..3dd19d4e0 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-11-01 Kevin P. Fleming <kpfleming@digium.com>
+ * stdtime/localtime.c: fix build failure on uClibc systems (issue #5558)
+ * devicestate.c: same
+
* many files: make chan_misdn actually build (issue #5566)
* many files: more Cygwin build system support (issue #4678)
diff --git a/devicestate.c b/devicestate.c
index 92fb5eb9b..73b779568 100755
--- a/devicestate.c
+++ b/devicestate.c
@@ -26,6 +26,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
+#include <stdio.h>
#include "asterisk.h"
diff --git a/stdtime/localtime.c b/stdtime/localtime.c
index 248f20621..b177d3cd4 100755
--- a/stdtime/localtime.c
+++ b/stdtime/localtime.c
@@ -39,15 +39,6 @@
#endif
#define TZ_STRLEN_MAX 255
/* #define DEBUG */
-#include "asterisk/lock.h"
-#include "asterisk/localtime.h"
-
-
-#ifndef lint
-#ifndef NOID
-static const char elsieid[] = "@(#)localtime.c 7.57";
-#endif /* !defined NOID */
-#endif /* !defined lint */
/*
** Leap second handling from Bradley White (bww@k.gp.cs.cmu.edu).
@@ -59,12 +50,23 @@ static const char elsieid[] = "@(#)localtime.c 7.57";
#include <sys/types.h>
#include <sys/stat.h>
-#include "private.h"
-#include "tzfile.h"
#include <fcntl.h>
#ifdef DEBUG
#include <stdio.h>
#endif
+#include "private.h"
+#include "tzfile.h"
+#include "asterisk/lock.h"
+#include "asterisk/localtime.h"
+
+
+#ifndef lint
+#ifndef NOID
+static const char elsieid[] = "@(#)localtime.c 7.57";
+#endif /* !defined NOID */
+#endif /* !defined lint */
+
+
/*
** SunOS 4.1.1 headers lack O_BINARY.