From 8d56649503787e031edd2acf83e3d9d6ce3eeacc Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 12 Dec 2024 17:20:00 +0100 Subject: [PATCH] Include relevant system headers before defining fallbacks Otherwise we may define the fallbacks, and later inclusion of the system headers may attempt to redefine those. Fixes GH-17112. --- sapi/fpm/fpm/fpm_config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sapi/fpm/fpm/fpm_config.h b/sapi/fpm/fpm/fpm_config.h index d34f686a6fbd1..a637326ed767a 100644 --- a/sapi/fpm/fpm/fpm_config.h +++ b/sapi/fpm/fpm/fpm_config.h @@ -2,6 +2,16 @@ #include +#ifdef HAVE_ARPA_INET_H +# include +#endif +#ifdef HAVE_NETINET_IN_H +# include +#endif +#ifdef HAVE_SYS_TIME_H +# include +#endif + /* Solaris does not have it */ #ifndef INADDR_NONE # define INADDR_NONE (-1)