소스 검색

Fix redefine problem

Eric Andersen 24 년 전
부모
커밋
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.  */