]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Autoconf: Update an AC_DEFINE()
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 3 May 2024 07:11:00 +0000 (09:11 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Fri, 3 May 2024 07:19:18 +0000 (09:19 +0200)
Same result in config.h as with CMake.

Before:
#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST /**/

After:
#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 1

(cherry picked from commit e5b1cab0483a5fbb958d453c07aab7307c73fc2b)

[skip ci]

configure.ac

index d1b1b1cd9f608f88e6dd4aba0bcd167383ca628d..476ed5c40876d3c03459405124d2f6ac200fbaa5 100644 (file)
@@ -596,7 +596,7 @@ if test "$ac_cv_func_ether_ntohost" = yes -a \
                unset ac_cv_have_decl_ether_ntohost
                AC_CHECK_DECL(ether_ntohost,
                    [
-                       AC_DEFINE(NETINET_ETHER_H_DECLARES_ETHER_NTOHOST,,
+                       AC_DEFINE(NETINET_ETHER_H_DECLARES_ETHER_NTOHOST,1,
                            [Define to 1 if netinet/ether.h declares `ether_ntohost'])
                    ],,
                    [