소스 검색

fix placement of multiple inclusion guard endif in internal syscall.h

this was messed up during a recent commit when the socketcall macros
were moved to the common internal/syscall.h, and the following commit
expanded the problem by adding more new content outside the guard.
Rich Felker 10 년 전
부모
커밋
9289931446
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/internal/syscall.h

+ 2 - 2
src/internal/syscall.h

@@ -163,8 +163,6 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
 #define SYS_fadvise SYS_fadvise64_64
 #endif
 
-#endif
-
 /* socketcall calls */
 
 #define __SC_socket      1
@@ -205,3 +203,5 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
 
 #define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__)
 #define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__))
+
+#endif