cygwin: add Object Size Checking to sys/socket.h
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
b3281de25f
commit
da4839ec18
|
@ -0,0 +1,20 @@
|
|||
#ifndef _SSP_SOCKET_H_
|
||||
#define _SSP_SOCKET_H_
|
||||
|
||||
#include <ssp/ssp.h>
|
||||
|
||||
#if __SSP_FORTIFY_LEVEL > 0
|
||||
__BEGIN_DECLS
|
||||
|
||||
__ssp_redirect0(ssize_t, recv, \
|
||||
(int __fd, void *__buf, size_t __len, int __flags), \
|
||||
(__fd, __buf, __len, __flags));
|
||||
|
||||
__ssp_redirect0(ssize_t, recvfrom, \
|
||||
(int __fd, void *__buf, size_t __len, int __flags, struct sockaddr *__from, socklen_t *__fromlen), \
|
||||
(__fd, __buf, __len, __flags, __from, __fromlen));
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* __SSP_FORTIFY_LEVEL > 0 */
|
||||
#endif /* _SSP_SOCKET_H_ */
|
|
@ -50,4 +50,8 @@ extern "C"
|
|||
};
|
||||
#endif
|
||||
|
||||
#if __SSP_FORTIFY_LEVEL > 0
|
||||
#include <ssp/socket.h>
|
||||
#endif
|
||||
|
||||
#endif /* _SYS_SOCKET_H */
|
||||
|
|
Loading…
Reference in New Issue