Skip to content

Commit

Permalink
Add *BSD support patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoon committed Jul 5, 2013
1 parent 4be93db commit 61ab8d1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions audio/libmp3splt/patches/patch-src_socket__manager.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$NetBSD: patch-src_socket__manager.c,v 1.1 2013/07/05 16:14:13 ryoon Exp $

--- src/socket_manager.c.orig 2013-02-08 09:21:53.000000000 +0000
+++ src/socket_manager.c
@@ -48,8 +48,10 @@ Manages a socket connection

#ifdef __WIN32__
#include <malloc.h>
+#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+#include <stdlib.h>
#else
-#include <alloca.h>
+include <alloca.h>
#endif

#include <string.h>

0 comments on commit 61ab8d1

Please sign in to comment.