[kernel] remove support for 2.6.27, no target is using it anymore
[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.
  */
 
  * GNU General Public License for more details.
  */
 
+#define _ISOC99_SOURCE
+#define _BSD_SOURCE
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <stdio.h>
 #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
                free(devstr);
                return wprobe_get_dev(arg);
 #else
-               *err = "Invalid argument";
+               if (err)
+                       *err = "Invalid argument";
                goto out;
 #endif
        }
                goto out;
 #endif
        }
This page took 0.021058 seconds and 4 git commands to generate.