Kaynağa Gözat

make sure the syscall mmap func isnt exported

Mike Frysinger 20 yıl önce
ebeveyn
işleme
bc5829aeab
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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)
 {