From: Guus Sliepen Date: Wed, 3 Jun 2020 19:23:33 +0000 (+0200) Subject: Include "system.h" in the UTCP sources. X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=deb85047ebc713f0de6b14ac2c5918e5bbb6425d Include "system.h" in the UTCP sources. The UTCP sources were not using the system.h header file like the rest of the code, resulting in issues with some compilers. --- diff --git a/src/utcp-test.c b/src/utcp-test.c index 992e6f0f..d1fb606f 100644 --- a/src/utcp-test.c +++ b/src/utcp-test.c @@ -1,16 +1,25 @@ -#define _GNU_SOURCE - -#include -#include -#include -#include -#include -#include -#include -#include -#include +/* + utcp-test.c -- Test application for UTCP + Copyright (C) 2014-2020 Guus Sliepen + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +#include "system.h" #include - +#include #include "utcp.h" diff --git a/src/utcp.c b/src/utcp.c index ec74923d..1c0890c6 100644 --- a/src/utcp.c +++ b/src/utcp.c @@ -17,16 +17,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE - -#include -#include -#include -#include -#include -#include -#include -#include +#include "system.h" #include #include "utcp_priv.h"