소스 검색

libc/inet: pull in stddef.h for NULL

Fixes a build error:
In file included from libc/inet/recv.c:8:0:
libc/inet/socketcalls.c: In function '__recv_nocancel':
libc/inet/socketcalls.c:203:57: error: 'NULL' undeclared (first use in this function)

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 11 년 전
부모
커밋
98df9185fd
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      libc/inet/socketcalls.c

+ 1 - 0
libc/inet/socketcalls.c

@@ -4,6 +4,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
+#include <stddef.h>
 #include <sys/syscall.h>
 #include <sys/socket.h>
 #include <cancel.h>