瀏覽代碼

Fix redefine problem

Eric Andersen 23 年之前
父節點
當前提交
a0839682d5
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      libc/misc/insremque/insremque.c

+ 5 - 2
libc/misc/insremque/insremque.c

@@ -16,9 +16,12 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#include <stddef.h>
+#include <features.h>
 #define _GNU_SOURCE
-#define _SVID_SOURCE
+#include <stddef.h>
+#ifndef _SVID_SOURCE
+#define _SVID_SOURCE 1
+#endif
 #include <search.h>
 
 /* Insert ELEM into a doubly-linked list, after PREV.  */