mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
FreeBSD compatability fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
#ifndef __BIT_TYPES_DEFINED__
|
#ifndef __BIT_TYPES_DEFINED__
|
||||||
#define __BIT_TYPES_DEFINED__
|
#define __BIT_TYPES_DEFINED__
|
||||||
|
#ifndef __FreeBSD__
|
||||||
typedef __signed char int8_t;
|
typedef __signed char int8_t;
|
||||||
typedef unsigned char u_int8_t;
|
typedef unsigned char u_int8_t;
|
||||||
typedef short int16_t;
|
typedef short int16_t;
|
||||||
@@ -61,6 +62,7 @@ typedef unsigned int u_int32_t;
|
|||||||
typedef long long int64_t;
|
typedef long long int64_t;
|
||||||
typedef unsigned long long u_int64_t;
|
typedef unsigned long long u_int64_t;
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* __FreeBSD__ */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
|
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
|
||||||
|
@@ -36,6 +36,10 @@ extern "C" {
|
|||||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||||
#endif /* __LITTLE_ENDIAN */
|
#endif /* __LITTLE_ENDIAN */
|
||||||
|
|
||||||
|
#if (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
|
#define __BYTE_ORDER __BIG_ENDIAN
|
||||||
#endif /* sun unix sparc */
|
#endif /* sun unix sparc */
|
||||||
|
2
mkdep
2
mkdep
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -
|
#!/bin/sh -
|
||||||
#
|
#
|
||||||
# $OpenBSD: mkdep.gcc.sh,v 1.8 1998/09/02 06:40:07 deraadt Exp $
|
# $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 $
|
# $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $
|
||||||
|
Reference in New Issue
Block a user