瀏覽代碼

headers patched w/ sed -i 's:extern int errno:#include <errno.h>' linux/unistd.h fail here

Peter S. Mazinger 18 年之前
父節點
當前提交
520788b830
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/ssp-internal.h

+ 4 - 0
include/ssp-internal.h

@@ -21,6 +21,10 @@
 #include <signal.h>
 #include <linux/unistd.h>
 
+#ifndef errno
+extern int errno;
+#endif
+
 #ifndef __SSP_QUICK_CANARY__
 #define __NR___kernel_open		__NR_open
 static __always_inline _syscall3(int,__kernel_open,const char *,path,int,flags,__kernel_mode_t,mode);