From 7405aa1c2ffd5005c914b055fc0bad120210c032 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Feb 2010 12:43:07 +0100 Subject: [PATCH] build-sys: add missing tests for libuuid and libblkid $ make checkconfig misc-utils/blkid.c : HAVE_TERMIO_H misc-utils/blkid.c : HAVE_TERMIOS_H shlibs/blkid/src/getsize.c : HAVE_FSTAT64 shlibs/blkid/src/llseek.c : HAVE_LLSEEK_PROTOTYPE shlibs/blkid/src/llseek.c : HAVE_LSEEK64_PROTOTYPE shlibs/uuid/src/gen_uuid.c : HAVE_SA_LEN*/ shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SOCKET_H shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SYSCALL_H Signed-off-by: Karel Zak --- configure.ac | 17 +++++++++++++++++ shlibs/uuid/src/gen_uuid.c | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1fef9444..5e99a10a 100644 --- a/configure.ac +++ b/configure.ac @@ -126,6 +126,8 @@ AC_CHECK_HEADERS( sys/prctl.h \ sys/queue.h \ sys/sockio.h \ + sys/socket.h \ + sys/syscall.h \ sys/file.h \ sys/ioctl.h \ sys/stat.h \ @@ -140,9 +142,24 @@ AC_CHECK_HEADERS([linux/raw.h], AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include ]]) +AC_CHECK_DECL([llseek], + [AC_DEFINE(HAVE_LLSEEK_PROTOTYPE, 1, + [Define to 1 if have llseek prototype])], + [], + [#include ]) + +AC_CHECK_DECL([lseek64], + [AC_DEFINE(HAVE_LSEEK64_PROTOTYPE, 1, + [Define to 1 if have lseek64 prototype])], + [], + [#define _LARGEFILE_SOURCE + #define _LARGEFILE64_SOURCE + #include ]) + AC_CHECK_FUNCS( [inet_aton \ futimens \ + fstat64 \ fsync \ getdomainname \ get_current_dir_name \ diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c index 5434b523..a90bd8ee 100644 --- a/shlibs/uuid/src/gen_uuid.c +++ b/shlibs/uuid/src/gen_uuid.c @@ -248,7 +248,7 @@ static int get_node_id(unsigned char *node_id) sizeof((i).ifr_name)+(i).ifr_addr.sa_len) #else #define ifreq_size(i) sizeof(struct ifreq) -#endif /* HAVE_SA_LEN*/ +#endif /* HAVE_SA_LEN */ sd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP); if (sd < 0) { -- 2.39.5