From 72ef62d79fff78c041142c50edac8d24b211ae4d Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 12 Jun 2016 16:29:48 -0700 Subject: libnl: Add missing version.h --- extra/libnl/defs.h | 20 ------------------ extra/libnl/gen.rc | 2 +- extra/libnl/internal/defs.h | 20 ++++++++++++++++++ extra/libnl/internal/netlink/version.h | 37 ++++++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 21 deletions(-) delete mode 100644 extra/libnl/defs.h create mode 100644 extra/libnl/internal/defs.h create mode 100644 extra/libnl/internal/netlink/version.h diff --git a/extra/libnl/defs.h b/extra/libnl/defs.h deleted file mode 100644 index 96cb3f6c..00000000 --- a/extra/libnl/defs.h +++ /dev/null @@ -1,20 +0,0 @@ -#include - -/* #undef DISABLE_PTHREADS */ -#define HAVE_LIBM 1 -#define HAVE_LIBPTHREAD 1 -#define HAVE_MEMORY_H 1 -#define LT_OBJDIR ".libs/" -#define NL_DEBUG 1 -#define PACKAGE "libnl" -#define PACKAGE_BUGREPORT "" -#define PACKAGE_NAME "libnl" -#define PACKAGE_STRING "libnl 3.2.25" -#define PACKAGE_TARNAME "libnl" -#define PACKAGE_URL "http://www.infradead.org/~tgr/libnl/" -#define PACKAGE_VERSION "3.2.25" -#define VERSION "3.2.25" -/* #undef const */ -#ifndef __cplusplus -/* #undef inline */ -#endif diff --git a/extra/libnl/gen.rc b/extra/libnl/gen.rc index 8980ac5b..a830f968 100644 --- a/extra/libnl/gen.rc +++ b/extra/libnl/gen.rc @@ -2,7 +2,7 @@ cflags\ -D _GNU_SOURCE\ -D 'SYSCONFDIR=''"/etc/libnl"''' \ -isystem include\ - -I '$dir' \ + -I '$dir'/internal\ -I '$srcdir'/include diff --git a/extra/libnl/internal/defs.h b/extra/libnl/internal/defs.h new file mode 100644 index 00000000..96cb3f6c --- /dev/null +++ b/extra/libnl/internal/defs.h @@ -0,0 +1,20 @@ +#include + +/* #undef DISABLE_PTHREADS */ +#define HAVE_LIBM 1 +#define HAVE_LIBPTHREAD 1 +#define HAVE_MEMORY_H 1 +#define LT_OBJDIR ".libs/" +#define NL_DEBUG 1 +#define PACKAGE "libnl" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_NAME "libnl" +#define PACKAGE_STRING "libnl 3.2.25" +#define PACKAGE_TARNAME "libnl" +#define PACKAGE_URL "http://www.infradead.org/~tgr/libnl/" +#define PACKAGE_VERSION "3.2.25" +#define VERSION "3.2.25" +/* #undef const */ +#ifndef __cplusplus +/* #undef inline */ +#endif diff --git a/extra/libnl/internal/netlink/version.h b/extra/libnl/internal/netlink/version.h new file mode 100644 index 00000000..a8094420 --- /dev/null +++ b/extra/libnl/internal/netlink/version.h @@ -0,0 +1,37 @@ +/* + * netlink/version.h Versioning Information + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation version 2.1 + * of the License. + * + * Copyright (c) 2008-2011 Thomas Graf + */ + +#ifndef NETLINK_VERSION_H_ +#define NETLINK_VERSION_H_ + +/* Compile Time Versioning Information */ + +#define LIBNL_STRING "libnl 3.2.25" +#define LIBNL_VERSION "3.2.25" + +#define LIBNL_VER_MAJ 3 +#define LIBNL_VER_MIN 2 +#define LIBNL_VER_MIC 25 +#define LIBNL_VER(maj,min) ((maj) << 8 | (min)) +#define LIBNL_VER_NUM LIBNL_VER(LIBNL_VER_MAJ, LIBNL_VER_MIN) + +#define LIBNL_CURRENT 220 +#define LIBNL_REVISION 0 +#define LIBNL_AGE 20 + +/* Run-time version information */ + +extern const int nl_ver_num; +extern const int nl_ver_maj; +extern const int nl_ver_min; +extern const int nl_ver_mic; + +#endif -- cgit v1.2.3