[package] fix bluetooth and ide breakage after r18955 (#6422)
[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.026306 seconds and 4 git commands to generate.