93c093c24e
buffers. This is a new dependency of an upcoming update of audio/umurmur. Tested by Jonathon Sisson, who also takes maintainership OK ajacoutot@
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
$OpenBSD: patch-configure,v 1.1.1.1 2011/07/08 08:58:02 dcoppa Exp $
|
|
|
|
Fix libpthread linkage
|
|
Fix endianess test
|
|
|
|
--- configure.orig Thu Mar 10 20:12:02 2011
|
|
+++ configure Thu Jul 7 14:53:37 2011
|
|
@@ -16686,7 +16686,7 @@ fi
|
|
|
|
|
|
pbc_savelibs="$LIBS"
|
|
- LIBS="$LIBS -lprotoc -lprotobuf -lpthread"
|
|
+ LIBS="$LIBS -lprotoc -lprotobuf -pthread"
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
/* confdefs.h. */
|
|
_ACEOF
|
|
@@ -17004,7 +17004,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
|
|
|
|
# ------------------ try <mach/endian.h> ------------------
|
|
|
|
-for ac_header in mach/endian.h
|
|
+for ac_header in sys/endian.h
|
|
do
|
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
|
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
|
@@ -17158,13 +17158,14 @@ _ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
-#include <mach/endian.h>
|
|
+#include <sys/types.h>
|
|
+#include <sys/endian.h>
|
|
int
|
|
main ()
|
|
{
|
|
|
|
- switch (1) { case __LITTLE_ENDIAN: break;
|
|
- case __BYTE_ORDER: break; }
|
|
+ switch (1) { case LITTLE_ENDIAN: break;
|
|
+ case BYTE_ORDER: break; }
|
|
;
|
|
return 0;
|
|
}
|