]> git.sur5r.net Git - bacula/bacula/commitdiff
Make ioctl test more exact
authorKern Sibbald <kern@sibbald.com>
Mon, 28 Dec 2009 14:34:27 +0000 (15:34 +0100)
committerKern Sibbald <kern@sibbald.com>
Mon, 28 Dec 2009 14:34:27 +0000 (15:34 +0100)
bacula/autoconf/configure.in
bacula/configure

index 849314e5448430ae71dc0f851a610b7ee3c8d209..61a8ea7af65f9b41b4fe14c5450d349ac1b9626c 100644 (file)
@@ -1891,9 +1891,8 @@ AC_CACHE_CHECK(for ioctl_req_t, ba_cv_header_ioctl_req_t,
              #include <sys/types.h>
              #include <sys/ioctl.h>
          ], [
-             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
          ], [
index a3b4e12ece1077a008aa1a8430ad16889a519b82..36c142dad4b56baf1217d478ae159d1b0201a0bd 100755 (executable)
@@ -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;