Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-3.2$ cat foo.c
- #include <sys/socket.h>
- extern ssize_t recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen);
- int main()
- {
- int s, flags; void *buf; size_t len; struct sockaddr *from; socklen_t* fromlen;
- return(recvfrom(s, buf, len, flags, from, fromlen));
- }
- -bash-3.2$ gcc -Wp,-D_FORTIFY_SOURCE=2 -O2 -D_GNU_SOURCE=1 foo.c
- In file included from /usr/include/sys/socket.h:251:0,
- from foo.c:1:
- foo.c: In function 'main':
- /usr/include/bits/socket2.h:65:1: error: inlining failed in call to always_inline 'recvfrom': mismatched arguments
- recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags,
- ^
- foo.c:8:3: error: called from here
- return(recvfrom(s, buf, len, flags, from, fromlen));
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement