openbsd-ports/devel/protobuf-c/patches/patch-src_google_protobuf-c_protobuf-c-data-buffer_c
dcoppa 93c093c24e Import devel/protobuf-c, a C implementation of google protocol
buffers.

This is a new dependency of an upcoming update of audio/umurmur.

Tested by Jonathon Sisson, who also takes maintainership
OK ajacoutot@
2011-07-08 08:58:02 +00:00

19 lines
506 B
Plaintext

$OpenBSD: patch-src_google_protobuf-c_protobuf-c-data-buffer_c,v 1.1.1.1 2011/07/08 08:58:02 dcoppa Exp $
malloc.h is obsolete
--- src/google/protobuf-c/protobuf-c-data-buffer.c.orig Thu Jul 7 17:13:21 2011
+++ src/google/protobuf-c/protobuf-c-data-buffer.c Thu Jul 7 17:13:35 2011
@@ -33,11 +33,6 @@
#endif
#include <string.h>
#include <errno.h>
-#if HAVE_ALLOCA_H
-# include <alloca.h>
-#elif HAVE_MALLOC_H
-# include <malloc.h>
-#endif
#include <stdlib.h>
#include "protobuf-c-data-buffer.h"