From 79d6c6824b4c756efcbd164d7951e532788a2a9c Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 18 Jan 2015 04:52:03 +0000 Subject: [PATCH] Per POSIX, needs to expose struct iovec, and may do so by pulling in , so do so. Remove some stuff that we can trust to also provide, like cdefs.h, _types.h, and exposing size_t and ssize_t pointed out by naddy@ ok deraadt@ --- sys/sys/socket.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/sys/sys/socket.h b/sys/sys/socket.h index fa5d5bb527a..514adb8f3bb 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.85 2014/08/31 02:27:37 guenther Exp $ */ +/* $OpenBSD: socket.h,v 1.86 2015/01/18 04:52:03 guenther Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -35,12 +35,11 @@ #ifndef _SYS_SOCKET_H_ #define _SYS_SOCKET_H_ -#include +/* get the definitions for struct iovec, size_t, ssize_t, and */ +#include #if __BSD_VISIBLE #include /* for off_t, uid_t, and gid_t */ -#else -#include #endif #ifndef _SOCKLEN_T_DEFINED_ @@ -53,16 +52,6 @@ typedef __socklen_t socklen_t; /* length type for network syscalls */ typedef __sa_family_t sa_family_t; /* sockaddr address family type */ #endif -#ifndef _SIZE_T_DEFINED_ -#define _SIZE_T_DEFINED_ -typedef __size_t size_t; -#endif - -#ifndef _SSIZE_T_DEFINED_ -#define _SSIZE_T_DEFINED_ -typedef __ssize_t ssize_t; -#endif - /* * Definitions related to sockets: types, address families, options. -- 2.20.1