From: Kern Sibbald Date: Mon, 28 Dec 2009 14:34:27 +0000 (+0100) Subject: Make ioctl test more exact X-Git-Tag: Release-5.0.0~110 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12da4021d426a94812e65718b573801fdf954d39;p=bacula%2Fbacula Make ioctl test more exact --- 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;