diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-19 06:06:50 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-19 06:06:50 +0000 |
commit | c9d065d47db936f36806645de0bb3cfc89fbecae (patch) | |
tree | b4dbae4e07bf09878175559ab059e74a688ea76e | |
parent | 698d4eca5731c35f0f1cf3ebb0487e532cc12435 (diff) |
FreeBSD compatability fixes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1372 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | db1-ast/include/db.h | 2 | ||||
-rwxr-xr-x | include/asterisk/frame.h | 4 | ||||
-rwxr-xr-x | mkdep | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/db1-ast/include/db.h b/db1-ast/include/db.h index f00c4df9f..2a279b5aa 100755 --- a/db1-ast/include/db.h +++ b/db1-ast/include/db.h @@ -51,6 +51,7 @@ #ifndef __BIT_TYPES_DEFINED__ #define __BIT_TYPES_DEFINED__ +#ifndef __FreeBSD__ typedef __signed char int8_t; typedef unsigned char u_int8_t; typedef short int16_t; @@ -61,6 +62,7 @@ typedef unsigned int u_int32_t; typedef long long int64_t; typedef unsigned long long u_int64_t; #endif +#endif /* __FreeBSD__ */ #endif #define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */ diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index 66b080f42..9b385d848 100755 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -36,6 +36,10 @@ extern "C" { #define __BYTE_ORDER __LITTLE_ENDIAN #endif /* __LITTLE_ENDIAN */ +#if (defined(i386)) +#define __BYTE_ORDER __LITTLE_ENDIAN +#endif /* defined i386 */ + #if (defined(sun) && defined(unix) && defined(sparc)) #define __BYTE_ORDER __BIG_ENDIAN #endif /* sun unix sparc */ @@ -1,4 +1,4 @@ -#!/bin/bash - +#!/bin/sh - # # $OpenBSD: mkdep.gcc.sh,v 1.8 1998/09/02 06:40:07 deraadt Exp $ # $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $ |