[libc-commits] [libc] 8e284be - [libc][Obvious] Add header guards for the generated linux syscall header file.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Fri Aug 27 09:18:24 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-08-27T16:17:53Z
New Revision: 8e284be04f2cd43a821289133a759afa2844f935

URL: https://github.com/llvm/llvm-project/commit/8e284be04f2cd43a821289133a759afa2844f935
DIFF: https://github.com/llvm/llvm-project/commit/8e284be04f2cd43a821289133a759afa2844f935.diff

LOG: [libc][Obvious] Add header guards for the generated linux syscall header file.

Added: 
    

Modified: 
    libc/config/linux/syscall.h.def

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/syscall.h.def b/libc/config/linux/syscall.h.def
index 7f52a26ff0e7..0daceaf00dde 100644
--- a/libc/config/linux/syscall.h.def
+++ b/libc/config/linux/syscall.h.def
@@ -6,4 +6,9 @@
 //
 //===----------------------------------------------------------------------===//
 
+#ifndef LLVM_LIBC_CONFIG_LINUX_SYSCALL_H
+#define LLVM_LIBC_CONFIG_LINUX_SYSCALL_H
+
 %%include_file(${inline_syscalls})
+
+#endif // LLVM_LIBC_CONFIG_LINUX_SYSCALL_H


        


More information about the libc-commits mailing list