mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Use AC_GNU_SOURCE in daemon. Don't need _GNU_SOURCE in C files any more.
This commit is contained in:
@@ -33,6 +33,9 @@ AC_ARG_ENABLE([debug-command],
|
||||
[AC_DEFINE_UNQUOTED([ENABLE_DEBUG_COMMAND],[1],[Enable the 'debug' command])],
|
||||
[])
|
||||
|
||||
dnl For strchrnul(3), asprintf(3), futimens(2) and getline(3).
|
||||
AC_GNU_SOURCE
|
||||
|
||||
dnl Check for basic C environment.
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#define _GNU_SOURCE /* for futimens(2) and getline(3) */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE // for strchrnul
|
||||
#include <config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#define _GNU_SOURCE // for strchrnul
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -2560,7 +2560,7 @@ and generate_daemon_actions_h () =
|
||||
and generate_daemon_actions () =
|
||||
generate_header CStyle GPLv2;
|
||||
|
||||
pr "#define _GNU_SOURCE // for strchrnul\n";
|
||||
pr "#include <config.h>\n";
|
||||
pr "\n";
|
||||
pr "#include <stdio.h>\n";
|
||||
pr "#include <stdlib.h>\n";
|
||||
|
||||
Reference in New Issue
Block a user