소스 검색

Fix daemon build for no-MMU no-threads.

CLONE_VM (used in no-MMU daemon) is defined in <bits/sched.h>.  A
build with threads ends up including <sched.h> via <pthread.h> via
<bits/uClibc_mutex.h>; this indirect include does not happen for a
build without threads, so this patch adds a direct <sched.h> include.

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Joseph Myers 15 년 전
부모
커밋
086adc370c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      libc/unistd/daemon.c

+ 1 - 0
libc/unistd/daemon.c

@@ -59,6 +59,7 @@
 
 #ifndef __ARCH_USE_MMU__
 #include <sys/syscall.h>
+#include <sched.h>
 /* use clone() to get fork() like behavior here -- we just want to disassociate
  * from the controlling terminal
  */