There is no need to use a buffer at all.
[oweals/opkg-lede.git] / libopkg / includes.h
index 5a67001ab4d2054326dc5c521cf5dc673241307b..65beb56e7e758489712b27110c0d87c707dbfdcf 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef INCLUDES_H
 #define INCLUDES_H
 
+#include <config.h>
 #include <stdio.h>
 
 #if STDC_HEADERS
 #endif
 
 #if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-#  include <memory.h>
-# endif
-/* XXX: What's the right way to pick up GNU's strndup declaration? */
-# if __GNUC__
-#   define __USE_GNU 1
-# endif
 # include <string.h>
-# undef __USE_GNU
 #endif
 
 #if HAVE_STRINGS_H