freebsd-ports/multimedia/xbmc/files/patch-xbmc__linux__FreeBSDGNUReplacements.h
Bernhard Froehlich b7207fae88 - Update to 11.0b1
- Add fix to build fine with CLANG
- Remove USE_LDCONFIG because xbmc uses hardcoded paths

PR:		ports/163796
Submitted by:	Mickael Maillot <mickael.maillot@gmail.com> (maintainer)
2012-01-18 12:05:48 +00:00

29 lines
658 B
C

--- ./xbmc/linux/FreeBSDGNUReplacements.h.orig 2012-01-02 10:14:38.000000000 +0100
+++ ./xbmc/linux/FreeBSDGNUReplacements.h 2012-01-02 10:14:38.000000000 +0100
@@ -0,0 +1,25 @@
+#ifndef __FREEBSDGNUREPLACEMENTS_H__
+#define __FREEBSDGNUREPLACEMENTS_H__
+
+#include <sys/param.h>
+#include <string.h>
+#include <stdio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#if __FreeBSD_version < 800067
+
+size_t strnlen(const char *s, size_t n);
+ssize_t getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream);
+
+#endif
+
+int strverscmp(const char *s1, const char *s2);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif