wprobe: fix compile error because of missing isnan()
[openwrt.git] / package / wprobe / src / user / wprobe-lib.c
index a3b0fb5..7ba67cf 100644 (file)
@@ -13,6 +13,8 @@
  * GNU General Public License for more details.
  */
 
+#define _ISOC99_SOURCE
+#define _BSD_SOURCE
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <stdio.h>
@@ -795,7 +797,8 @@ wprobe_get_auto(const char *arg, char **err)
                free(devstr);
                return wprobe_get_dev(arg);
 #else
-               *err = "Invalid argument";
+               if (err)
+                       *err = "Invalid argument";
                goto out;
 #endif
        }
This page took 0.020754 seconds and 4 git commands to generate.