diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/apk_endian.h | 33 | ||||
-rw-r--r-- | src/meson.build | 8 |
2 files changed, 7 insertions, 34 deletions
diff --git a/src/apk_endian.h b/src/apk_endian.h deleted file mode 100644 index d4ff516..0000000 --- a/src/apk_endian.h +++ /dev/null @@ -1,33 +0,0 @@ -/* apk_endian.h - Alpine Package Keeper (APK) - * - * Copyright (C) 2005-2008 Natanael Copa <n@tanael.org> - * Copyright (C) 2008-2011 Timo Teräs <timo.teras@iki.fi> - * All rights reserved. - * - * SPDX-License-Identifier: GPL-2.0-only - */ - -#ifndef APK_ENDIAN_H -#define APK_ENDIAN_H - -#ifdef __linux__ -# include <endian.h> -#endif - -#ifdef __APPLE__ -# include <libkern/OSByteOrder.h> -# define htobe16(x) OSSwapHostToBigInt16(x) -# define htole16(x) OSSwapHostToLittleInt16(x) -# define be16toh(x) OSSwapBigToHostInt16(x) -# define le16toh(x) OSSwapLittleToHostInt16(x) -# define htobe32(x) OSSwapHostToBigInt32(x) -# define htole32(x) OSSwapHostToLittleInt32(x) -# define be32toh(x) OSSwapBigToHostInt32(x) -# define le32toh(x) OSSwapLittleToHostInt32(x) -# define htobe64(x) OSSwapHostToBigInt64(x) -# define htole64(x) OSSwapHostToLittleInt64(x) -# define be64toh(x) OSSwapBigToHostInt64(x) -# define le64toh(x) OSSwapLittleToHostInt64(x) -#endif - -#endif diff --git a/src/meson.build b/src/meson.build index ccfdbb0..da6bb9b 100644 --- a/src/meson.build +++ b/src/meson.build @@ -160,7 +160,12 @@ if(lua_dep.found()) libluaapk = library( 'luaapk', luaapk_src, - dependencies: [lua_dep, libapk_dep, shared_deps], + dependencies: [ + lua_dep, + libapk_dep, + shared_deps, + libportability_dep.partial_dependency(includes: true), + ], install: true, install_dir: lua_dep.get_pkgconfig_variable('libdir'), c_args: apk_cargs, @@ -175,6 +180,7 @@ apk_exe = executable( libapk_dep, shared_deps, libfetch_dep.partial_dependency(includes: true), + libportability_dep.partial_dependency(includes: true), ], c_args: apk_cargs, ) |