瀏覽代碼

make sure the syscall mmap func isnt exported

Mike Frysinger 20 年之前
父節點
當前提交
bc5829aeab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/sysdeps/linux/common/mmap.c

+ 1 - 1
libc/sysdeps/linux/common/mmap.c

@@ -13,7 +13,7 @@
 
 #ifdef __NR_mmap
 #define __NR__mmap __NR_mmap
-_syscall1(__ptr_t, _mmap, unsigned long *, buffer);
+static inline _syscall1(__ptr_t, _mmap, unsigned long *, buffer);
 __ptr_t mmap(__ptr_t addr, size_t len, int prot,
 			 int flags, int fd, __off_t offset)
 {