[ENBD] [PATCH 2.4.35] bug fixes for configure.in

Bart Van Assche bart.vanassche at gmail.com
Fri Apr 18 08:36:53 MDT 2008


Hello,

There are some bugs in the configure script of enbd version 2.4.35.
Can the patch below please be reviewed and applied ?

Thanks,

Bart.

 --- orig/enbd-2.4.35/nbd/configure.in   2008-04-17 17:08:54.000000000 +0200
 +++ enbd-2.4.35/nbd/configure.in        2008-04-18 14:28:34.000000000 +0200
 @@ -46,7 +46,7 @@
   #include <sys/time.h>
   #include <unistd.h>
   ],
 -  [main() { static struct timeval a, b; timeradd(&a,&b,&a); }],
 +  [static struct timeval a, b; timeradd(&a,&b,&a)],
   [ac_cv_func_timeradd=yes; AC_DEFINE(HAVE_TIMERADD)],
   [ac_cv_func_timeradd=no;  cat >> confdefs.h <<\EOF
   #define timeradd(a, b, result) \
 @@ -152,7 +152,7 @@
   #include <unistd.h>
   #include <time.h>
   ],
 -  [main() {
 +  [
      static struct timespec a;
      switch(1) {
        case 1:
 @@ -167,7 +167,6 @@
      #endif
          return 0;
      }
 -   }
   ],
   [ac_cv_func_clock_monotonic=yes; AC_DEFINE(HAVE_CLOCK_MONOTONIC)],
   [ac_cv_func_clock_monotonic=no]
 @@ -185,6 +184,7 @@
  # if HAVE_STDLIB_H
  #  include <stdlib.h>
  # endif
 +#endif
  #if HAVE_SYS_SOCKET_H
  # include <sys/socket.h>
  #endif


More information about the ENBD mailing list