summaryrefslogtreecommitdiff
path: root/audio/musicpd/patches/patch-src_util_Alloc.hxx
blob: d89e784ceb1fdda4ac3de9da1dc260401562ad6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-src_util_Alloc.hxx,v 1.4 2015/01/26 08:22:25 pho Exp $

Some platforms (e.g. Darwin 9) don't have strndup(3), but the function
xstrndup() isn't used in the first place.

http://bugs.musicpd.org/view.php?id=4289 (rejected)
http://bugs.musicpd.org/view.php?id=4291 (revised; rejected too)

--- src/util/Alloc.hxx.orig	2014-10-24 22:28:53.000000000 +0000
+++ src/util/Alloc.hxx
@@ -54,14 +54,4 @@ gcc_malloc gcc_nonnull_all
 char *
 xstrdup(const char *s);
 
-/**
- * Duplicate a string.  Use free() to free it.
- *
- * This function never fails; in out-of-memory situations, it aborts
- * the process.
- */
-gcc_malloc gcc_nonnull_all
-char *
-xstrndup(const char *s, size_t n);
-
 #endif