[Asterisk-cvs] asterisk/include/asterisk frame.h,1.12,1.13 localtime.h,1.1,1.2
markster at lists.digium.com
markster at lists.digium.com
Mon Oct 27 13:34:34 CST 2003
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7238/include/asterisk
Modified Files:
frame.h localtime.h
Log Message:
More cleanups and OSX fixes for 10.3
Index: frame.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/frame.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- frame.h 26 Oct 2003 03:28:01 -0000 1.12
+++ frame.h 27 Oct 2003 20:00:41 -0000 1.13
@@ -26,7 +26,7 @@
#ifndef __BYTE_ORDER
#ifdef __linux__
#include <endian.h>
-#elif (defined(__OpenBSD__) || defined(__APPLE__))
+#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
@@ -36,11 +36,11 @@
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif /* __LITTLE_ENDIAN */
-#if (defined(i386))
+#if defined(i386) || defined(__i386__)
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif /* defined i386 */
-#if (defined(sun) && defined(unix) && defined(sparc))
+#if defined(sun) && defined(unix) && defined(sparc)
#define __BYTE_ORDER __BIG_ENDIAN
#endif /* sun unix sparc */
Index: localtime.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/localtime.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- localtime.h 13 Sep 2003 20:51:48 -0000 1.1
+++ localtime.h 27 Oct 2003 20:00:41 -0000 1.2
@@ -18,5 +18,7 @@
extern void ast_tzset(const char *name);
extern struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
extern time_t ast_mktime(struct tm * const tmp, const char *zone);
+extern char *ast_ctime(const time_t * const timep);
+extern char *ast_ctime_r(const time_t * const timep, char *buf);
#endif
More information about the svn-commits
mailing list