From 12da4021d426a94812e65718b573801fdf954d39 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 28 Dec 2009 15:34:27 +0100 Subject: [PATCH] Make ioctl test more exact --- bacula/autoconf/configure.in | 5 ++--- bacula/configure | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 849314e544..61a8ea7af6 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1891,9 +1891,8 @@ AC_CACHE_CHECK(for ioctl_req_t, ba_cv_header_ioctl_req_t, #include #include ], [ - unsigned long int req = 0; - int fd = 0; - ioctl(fd, req); + int (*d_ioctl)(int fd, unsigned long int request, ...); + d_ioctl = ::ioctl; ], [ ba_cv_header_ioctl_req_t=yes ], [ diff --git a/bacula/configure b/bacula/configure index a3b4e12ece..36c142dad4 100755 --- a/bacula/configure +++ b/bacula/configure @@ -32700,9 +32700,8 @@ int main () { - unsigned long int req = 0; - int fd = 0; - ioctl(fd, req); + int (*d_ioctl)(int fd, unsigned long int request, ...); + d_ioctl = ::ioctl; ; return 0; -- 2.39.5