mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1014613 - Unbreak build on BSDs after bug 908503.
This commit is contained in:
parent
3787e97238
commit
a4ad3e8ea8
@ -21,6 +21,12 @@ elif CONFIG['OS_TARGET'] == 'Darwin':
|
||||
DEFINES['HAVE_SYS_UIO_H'] = True
|
||||
DEFINES['off64_t'] = 'off_t'
|
||||
LOCAL_INCLUDES += [ 'ports/darwin/include' ]
|
||||
elif CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'OpenBSD', 'NetBSD'):
|
||||
if not CONFIG['OS_TARGET'] == 'NetBSD':
|
||||
DEFINES['ENODATA'] = '-0x80000003'
|
||||
DEFINES['HAVE_SYS_UIO_H'] = True
|
||||
DEFINES['off64_t'] = 'off_t'
|
||||
LOCAL_INCLUDES += [ 'ports/bsd/include' ]
|
||||
else:
|
||||
DEFINES['HAVE_SYS_UIO_H'] = True
|
||||
if CONFIG['OS_TARGET'] == 'Linux':
|
||||
|
15
media/libstagefright/ports/bsd/include/byteswap.h
Normal file
15
media/libstagefright/ports/bsd/include/byteswap.h
Normal file
@ -0,0 +1,15 @@
|
||||
/* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
|
||||
#ifndef BYTESWAP_H_
|
||||
#define BYTESWAP_H_
|
||||
|
||||
#include <sys/endian.h>
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
#define bswap_16(x) swap16(x)
|
||||
#else
|
||||
#define bswap_16(x) bswap16(x)
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user