Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch should work for any 4.3 Net2 code base or newer, but we are only testing on FreeBSD.
- Loading branch information
John Zachary
committed
Mar 7, 2013
1 parent
62aaad8
commit 29a6467
Showing
7 changed files
with
69 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* -*- coding: utf-8 -*- | ||
* ---------------------------------------------------------------------- | ||
* Copyright © 2013, RedJack, LLC. | ||
* All rights reserved. | ||
* | ||
* Please see the COPYING file in this distribution for license | ||
* details. | ||
* ---------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef LIBCORK_CONFIG_BSD_H | ||
#define LIBCORK_CONFIG_BSD_H | ||
|
||
/*----------------------------------------------------------------------- | ||
* Endianness | ||
*/ | ||
|
||
#include <sys/endian.h> | ||
|
||
#if BYTE_ORDER == BIG_ENDIAN | ||
#define CORK_CONFIG_IS_BIG_ENDIAN 1 | ||
#define CORK_CONFIG_IS_LITTLE_ENDIAN 0 | ||
#elif BYTE_ORDER == LITTLE_ENDIAN | ||
#define CORK_CONFIG_IS_BIG_ENDIAN 0 | ||
#define CORK_CONFIG_IS_LITTLE_ENDIAN 1 | ||
#else | ||
#error "Cannot determine system endianness" | ||
#endif | ||
|
||
#define CORK_HAVE_REALLOCF 1 | ||
#define CORK_HAVE_PTHREADS 1 | ||
|
||
|
||
#endif /* LIBCORK_CONFIG_BSD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
PROJECT=libcork | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters