Skip to content
Permalink
Browse files

apr: fix implicitly defined function in configure

  • Loading branch information
Schamschula committed Jun 28, 2020
1 parent 6165ef2 commit a14fc256193020cb92174919db733b10803cc3ca
Showing with 101 additions and 1 deletion.
  1. +2 −1 devel/apr/Portfile
  2. +99 −0 devel/apr/files/patch-configure.diff
@@ -37,7 +37,8 @@ configure.args --with-installbuilddir=${prefix}/share/apr-1/build \
--enable-nonportable-atomics \
ac_cv_func_setpgrp_void=no

patchfiles apr_h_patch.diff
patchfiles apr_h_patch.diff \
patch-configure.diff

test.run yes
test.target check
@@ -0,0 +1,99 @@
--- configure.orig 2019-04-01 12:56:23.000000000 -0500
+++ configure 2020-06-28 07:51:32.000000000 -0500
@@ -22913,6 +22913,7 @@
#include <errno.h>
#include <string.h>
#include <stdio.h>
+#include <stdlib.h>
main()
{
char buf[1024];
@@ -24476,6 +24477,7 @@
/* end confdefs.h. */
#include <stdio.h>
#include <sys/types.h>
+#include <stdlib.h>
#ifdef WIN32
#define binmode "b"
#else
@@ -24801,6 +24803,7 @@
/* end confdefs.h. */
#include <stdio.h>
#include <sys/types.h>
+#include <stdlib.h>
#ifdef WIN32
#define binmode "b"
#else
@@ -24864,6 +24867,7 @@
/* end confdefs.h. */
#include <stdio.h>
#include <stddef.h>
+#include <stdlib.h>
#ifdef WIN32
#define binmode "b"
#else
@@ -24928,6 +24932,7 @@
/* end confdefs.h. */
#include <stdio.h>
#include <sys/types.h>
+#include <stdlib.h>
#ifdef WIN32
#define binmode "b"
#else
@@ -25586,6 +25591,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/uio.h>
+#include <stdlib.h>
#ifdef WIN32
#define binmode "b"
#else
@@ -26211,6 +26217,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include <stdlib.h>
main()
{
struct rlimit limit;
@@ -26810,6 +26817,7 @@

#include <sys/types.h>
#include <pthread.h>
+#include <stdlib.h>
int main()
{
pthread_mutex_t mutex;
@@ -28748,6 +28756,8 @@
/* end confdefs.h. */

#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@@ -29586,6 +29596,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

+#include <stdlib.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
@@ -29658,6 +29669,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

+#include <stdlib.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
@@ -29707,6 +29719,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */

+#include <stdlib.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

0 comments on commit a14fc25

Please sign in to comment.
You can’t perform that action at this time.