diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-27 20:00:41 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-27 20:00:41 +0000 |
commit | 854adbe3bd6fcd137e2d78dac42c2c535bf3a945 (patch) | |
tree | c8ce701bc8a19fff64bf153bba8347c57ac0e658 /include | |
parent | 73f4bc8c25d00d2d942b3580abc779f9382ab446 (diff) |
More cleanups and OSX fixes for 10.3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1678 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/frame.h | 6 | ||||
-rwxr-xr-x | include/asterisk/localtime.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index d477f0528..9c5ba203e 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -26,7 +26,7 @@ extern "C" { #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 @@ extern "C" { #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 */ diff --git a/include/asterisk/localtime.h b/include/asterisk/localtime.h index 320c293d7..d7d6bbe22 100755 --- a/include/asterisk/localtime.h +++ b/include/asterisk/localtime.h @@ -18,5 +18,7 @@ extern int ast_tzsetwall(void); 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 |