1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Fix compile problem with gcc46.

PR:		ports/156756
Submitted by:	Olivier <software-freebsd@interfasys dot ch>
This commit is contained in:
Vanilla I. Shu 2011-05-23 12:48:19 +00:00
parent ff9b5de54f
commit 12df5f5a1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274510
4 changed files with 26 additions and 6 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= libmemcached
PORTVERSION= 0.49
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://launchpad.net/${PORTNAME}/1.0/${PORTVERSION}/+download/

View File

@ -0,0 +1,10 @@
--- clients/memparse.cc.orig 2011-03-30 00:50:27.000000000 +0800
+++ clients/memparse.cc 2011-05-23 20:36:12.000000000 +0800
@@ -37,6 +37,7 @@
#include <config.h>
+#include <string.h>
#include <iostream>
#include <libmemcached/memcached.h>

View File

@ -1,6 +1,6 @@
--- configure.orig 2010-07-02 21:24:43.000000000 +0800
+++ configure 2010-07-02 21:26:17.000000000 +0800
@@ -17987,7 +17987,7 @@ $as_echo "$ac_cv_safe_to_use_Wno_attribu
--- ./configure.orig 2011-05-03 00:12:18.000000000 +0800
+++ ./configure 2011-05-03 00:12:18.000000000 +0800
@@ -17926,7 +17926,7 @@
if test "$ac_cv_safe_to_use_Wno_attributes_" = "yes"; then :
@ -9,7 +9,7 @@
NO_ATTRIBUTES="-Wno-attributes"
fi
fi
@@ -20246,9 +20246,9 @@ fi
@@ -19903,9 +19903,9 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libevent" >&5
$as_echo "$ac_cv_libevent" >&6; }
if test "$ac_cv_libevent" = yes; then
@ -21,7 +21,7 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libevent" >&5
$as_echo_n "checking how to link with libevent... " >&6; }
@@ -20270,8 +20270,8 @@ $as_echo "$LIBEVENT" >&6; }
@@ -19927,8 +19927,8 @@
if test "x${ac_cv_libevent}" = "xyes"; then

View File

@ -0,0 +1,10 @@
--- libtest/test.h.orig 2011-04-05 14:27:17.000000000 +0800
+++ libtest/test.h 2011-05-23 20:40:44.000000000 +0800
@@ -46,6 +46,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <stdint.h>
#if !defined(__cplusplus)