#define WIN32_D_TYPE 0
extern uint64_t hostBytesPerSector;
+#elif CONFIG_LINUX
+#include <sys/sysmacros.h>
#endif
#ifdef CONFIG_DARWIN
else
# for linux target
- REQUIRED_PKG="ant python zlib1g-dev libglib2.0-dev libsdl1.2-dev \
+ REQUIRED_PKG="ant python3 zlib1g-dev libglib2.0-dev libsdl1.2-dev \
libasound2-dev libx11-dev libv4l-dev libxcomposite-dev \
libpixman-1-dev libcurl4-gnutls-dev libcap-dev libattr1-dev"
#include <arpa/inet.h>
#include <sys/socket.h>
#include <net/if.h>
+#include <sys/sysmacros.h>
#ifdef FIFREEZE
#define CONFIG_FSFREEZE
# avoid pkg-config bug on Windows
if [ -z ${PKG_CONFIG_PATH} ] ; then
-export PKG_CONFIG_LIBDIR=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig
export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig
else
-export PKG_CONFIG_LIBDIR=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig:${PKG_CONFIG_LIBDIR}
export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig:${PKG_CONFIG_PATH}
fi
+if [ -z ${PKG_CONFIG_LIBDIR} ] ; then
+ if [ ! -z "$CROSS_PREFIX" ] ; then
+ export PKG_CONFIG_LIBDIR=${TIZEN_SDK_DEV_PATH}/lib/pkgconfig
+ fi
+fi
+
# append common options
CONFIGURE_APPEND="
--target-list=$EMUL_TARGET_LIST
- --enable-werror
+ --disable-werror
--enable-maru
--enable-yagl
--enable-vigs
#include <sys/syscall.h>
#include <asm/unistd.h>
-static int memfd_create(const char *name, unsigned int flags)
+int memfd_create(const char *name, unsigned int flags)
{
#ifdef __NR_memfd_create
return syscall(__NR_memfd_create, name, flags);