aboutsummaryrefslogtreecommitdiffstats
path: root/stdtime
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 /stdtime
parent704fa73d21752ce5450494e55e0b55d5abae2971 (diff)
issue #5558
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6940 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'stdtime')
-rwxr-xr-xstdtime/localtime.c24
1 files changed, 13 insertions, 11 deletions
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.