Commit 39dc9e46 authored by Rusty Russell's avatar Rusty Russell

iscsi, nfs, opt, tap: use config.h instead of defining _GNU_SOURCE.

parent b6df44dc
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>. along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#define _GNU_SOURCE #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>. along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#define _GNU_SOURCE #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>. along with this program; if not, see <http://www.gnu.org/licenses/>.
*/ */
#define _GNU_SOURCE #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <unistd.h> #include <unistd.h>
......
#define _GNU_SOURCE #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <ccan/tap/tap.h> #include <ccan/tap/tap.h>
#include <setjmp.h> #include <setjmp.h>
......
#define _GNU_SOURCE #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <ccan/tap/tap.h> #include <ccan/tap/tap.h>
#include <setjmp.h> #include <setjmp.h>
......
#define _GNU_SOURCE
#include <ccan/tap/tap.h> #include <ccan/tap/tap.h>
#include <stdarg.h> #include <stdarg.h>
#include <setjmp.h> #include <setjmp.h>
......
#define _GNU_SOURCE
#include <ccan/tap/tap.h> #include <ccan/tap/tap.h>
#include <stdarg.h> #include <stdarg.h>
#include <setjmp.h> #include <setjmp.h>
......
#define _GNU_SOURCE #include "config.h"
#include <ccan/tap/tap.h> #include <ccan/tap/tap.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -23,10 +23,7 @@ ...@@ -23,10 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
/* FIXME: The real fix is an asprintf module. */ #include "config.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment