Changeset View
Changeset View
Standalone View
Standalone View
devel/elfutils/files/patch-lib_eu-config.h
--- lib/eu-config.h.orig 2015-06-11 11:38:55 UTC | --- lib/eu-config.h.orig 2015-06-11 11:38:55 UTC | ||||
+++ lib/eu-config.h | +++ lib/eu-config.h | ||||
@@ -187,4 +187,170 @@ asm (".section predict_data, \"aw\"; .pr | @@ -187,4 +187,171 @@ asm (".section predict_data, \"aw\"; .pr | ||||
#endif | #endif | ||||
+/* FreeBSD ports of glibcisms */ | +/* FreeBSD ports of glibcisms */ | ||||
+#include <sys/cdefs.h> | +#include <sys/cdefs.h> | ||||
+#include <libgen.h> | +#include <libgen.h> | ||||
+#include <limits.h> | |||||
+#include <stdarg.h> | +#include <stdarg.h> | ||||
+#include <stdint.h> | +#include <stdint.h> | ||||
+#include <stdlib.h> | +#include <stdlib.h> | ||||
+#include <string.h> | +#include <string.h> | ||||
+#include <wchar.h> | +#include <wchar.h> | ||||
+ | + | ||||
+#define _GL_ATTRIBUTE_PURE __attribute__((__pure__)) | +#define _GL_ATTRIBUTE_PURE __attribute__((__pure__)) | ||||
+ | + | ||||
Show All 17 Lines | |||||
+ return (wmemcpy(dst, src, len) + len); | + return (wmemcpy(dst, src, len) + len); | ||||
+} | +} | ||||
+#pragma GCC diagnostic pop | +#pragma GCC diagnostic pop | ||||
+ | + | ||||
+static inline void * | +static inline void * | ||||
+rawmemchr(const void *s, int c) | +rawmemchr(const void *s, int c) | ||||
+{ | +{ | ||||
+ | + | ||||
+ return (memchr(s, c, SIZE_MAX)); | + return (memchr(s, c, SSIZE_MAX)); | ||||
+} | +} | ||||
+ | + | ||||
+static inline void | +static inline void | ||||
+tdestroy(void *vroot __unused, void (*freefct)(void *) __unused) | +tdestroy(void *vroot __unused, void (*freefct)(void *) __unused) | ||||
+{ | +{ | ||||
+ | + | ||||
+ /* XXX: Just leak the memory for now. */ | + /* XXX: Just leak the memory for now. */ | ||||
+} | +} | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |