소스 검색

- added externs to keep gcc quiet about implicit declaration of 3 functions

Ned Ludd 21 년 전
부모
커밋
bed3e178c5
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      libc/sysdeps/linux/common/ssp.c

+ 5 - 0
libc/sysdeps/linux/common/ssp.c

@@ -41,6 +41,11 @@
 #define SSP_SIGTYPE SIGABRT
 #endif
 
+/* prototypes */
+extern int __libc_open (__const char *file, int oflag, mode_t mode);
+extern ssize_t __libc_read(int fd, void *buf, size_t count);
+extern int __libc_close (int fd);
+
 unsigned long __guard = 0UL;
 
 void __guard_setup(void) __attribute__ ((constructor));