Index: configure --- configure.orig 2018-09-24 18:16:55.000000000 +0200 +++ configure 2020-09-07 19:53:21.948628000 +0200 @@ -13789,7 +13789,6 @@ fi old_cflags=$CFLAGS -CFLAGS="$CFLAGS -Werror" { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for -Werror support" >&5 $as_echo_n "checking checking for -Werror support... " >&6; }; @@ -15867,6 +15866,11 @@ enablemysql=no fi + if [ "${enablemysql}" = "no" ] ; then + mysql_cflags="" + mysql_ldflags="" + mysql_ldadd="" + fi if ! [ "${enablemysql}" = "no" ] ; then @@ -16041,6 +16045,11 @@ enablepg=no fi + if [ "${enablepg}" = "no" ] ; then + pg_cflags="" + pg_ldflags="" + pg_ldadd="" + fi if ! [ "${enablepg}" = "no" ] ; then # Check whether --with-pg-prefix was given. @@ -17372,9 +17381,6 @@ sys_cflags="-DHPUX" fi -if ! [ "$strict_compile" = "no" ] ; then - sys_cflags="${sys_cflags} -Wall -Werror" -fi Index: contrib/libpki.spec Index: src/libpki/net/sock.h --- src/libpki/net/sock.h.orig 2018-09-24 18:16:55.000000000 +0200 +++ src/libpki/net/sock.h 2020-09-07 19:53:21.948776000 +0200 @@ -15,12 +15,9 @@ #ifndef __OPENCA_SOCK_WRAP_H #define __OPENCA_SOCK_WRAP_H -#ifdef HAVE_SYS_SOCKET_H # include -#else # include # include -#endif #include Index: src/net/dns.c --- src/net/dns.c.orig 2018-09-24 18:16:55.000000000 +0200 +++ src/net/dns.c 2020-09-07 19:53:21.948903000 +0200 @@ -246,6 +246,7 @@ #ifdef HAVE_LIBRESOLV +#ifdef HAVE_LIBRESOLV if (strncmp_nocase(str, "AAAA", 4) == 0) { ret = T_AAAA; } else if (strncmp_nocase(str, "A", 1) == 0) { @@ -264,6 +265,9 @@ ret = T_CERT; } else if (strncmp_nocase(str, "ANY", 3) == 0) { ret = T_ANY; +#else + if (0) { +#endif } else if (atoi(str) > 0) { ret = atoi(str); } else {