mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
22 lines
660 B
C
22 lines
660 B
C
--- common.h.orig 2017-10-13 21:53:16 UTC
|
|
+++ common.h
|
|
@@ -28,7 +28,9 @@
|
|
|
|
/* from string.h in glibc for Android/BSD */
|
|
#ifndef strdupa
|
|
+# ifdef HAVE_ALLOCA_H
|
|
# include <alloca.h>
|
|
+# endif
|
|
# include <string.h>
|
|
# define strdupa(s) \
|
|
({ \
|
|
@@ -40,7 +42,9 @@
|
|
#endif
|
|
|
|
#ifndef strndupa
|
|
+# ifdef HAVE_ALLOCA_H
|
|
# include <alloca.h>
|
|
+# endif
|
|
# include <string.h>
|
|
# define strndupa(s, n) \
|
|
({ \
|