daemon-helper: include "libnm-std-aux/nm-default-std.h" as first in "nm-daemon-helper.c"

All our sources should include one of the "nm-default*.h" headers
first. That one drags in <config.h>, which must be included first
and a few other basics.

Which is the right "nm-default*.h" header depends on the component. In
case of "nm-daemon-helper.c", it's "libnm-std-aux/nm-default-std.h".
This commit is contained in:
Thomas Haller
2022-05-03 13:46:31 +02:00
parent 0b7dc4137d
commit 501a7a3d00

View File

@@ -2,6 +2,8 @@
/* Copyright (C) 2021 Red Hat, Inc. */ /* Copyright (C) 2021 Red Hat, Inc. */
#include "libnm-std-aux/nm-default-std.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <arpa/inet.h> #include <arpa/inet.h>
@@ -10,8 +12,6 @@
#include <nss.h> #include <nss.h>
#endif #endif
#include "libnm-std-aux/nm-std-aux.h"
enum { enum {
RETURN_SUCCESS = 0, RETURN_SUCCESS = 0,
RETURN_INVALID_CMD = 1, RETURN_INVALID_CMD = 1,