summaryrefslogtreecommitdiff
path: root/src/libFLAC/bitwriter.c
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2007-02-13 02:12:13 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2007-02-13 02:12:13 +0000
commitf67f2065b3dae9bb3de04f1618d6eac372ea05ef (patch)
treef3b6a791273cff8dd81be157f207512ebfdc99ae /src/libFLAC/bitwriter.c
parente88147e3c6b1f2a6301551c3a876e7c291d0a8d5 (diff)
downloadflac-f67f2065b3dae9bb3de04f1618d6eac372ea05ef.tar.gz
Darwin fix for ntohl()
Diffstat (limited to 'src/libFLAC/bitwriter.c')
-rw-r--r--src/libFLAC/bitwriter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libFLAC/bitwriter.c b/src/libFLAC/bitwriter.c
index 3a73d9e5..4529b2f0 100644
--- a/src/libFLAC/bitwriter.c
+++ b/src/libFLAC/bitwriter.c
@@ -37,6 +37,8 @@
#include <string.h> /* for memcpy(), memset() */
#if defined(_MSC_VER) && _MSC_VER <= 1200
#include <winsock.h> /* for ntohl() */
+#elif defined FLAC__SYS_DARWIN
+#include <machine/endian.h> /* for ntohl() */
#else
#include <netinet/in.h> /* for ntohl() */
#endif