From: Karel Zak Date: Fri, 12 Feb 2010 11:43:07 +0000 (+0100) Subject: build-sys: add missing tests for libuuid and libblkid X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a7c1f70a66e8e165d0fa2da21c781c970d0f5ee;p=util-linux 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 --- diff --git a/configure.ac b/configure.ac index e36b8f6b..9cc20b7a 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) {