diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ChangeLog | 4 | ||||
| -rw-r--r-- | src/include/port-sockets.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 1d428a1e1..5f0dd7008 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,7 @@ +2002-08-21 Ken Raeburn <raeburn@mit.edu> + + * port-sockets.h (SG_BUF): New macro. + 2002-08-16 Ken Raeburn <raeburn@mit.edu> * k5-int.h (struct _krb5_context): Add new member udp_pref_limit. diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index 5dc936af9..4e49b9850 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -16,6 +16,7 @@ typedef WSABUF sg_buf; : ((SG)->buf += (N), (SG)->len -= (N), 0)) #define SG_LEN(SG) ((SG)->len + 0) +#define SG_BUF(SG) ((SG)->buf + 0) #define SG_SET(SG, B, N) ((SG)->buf = (char *)(B),(SG)->len = (N)) #define SOCKET_INITIALIZE() 0 @@ -102,6 +103,7 @@ typedef struct iovec sg_buf; (SG)->iov_len -= (N), 0)) #define SG_LEN(SG) ((SG)->iov_len + 0) +#define SG_BUF(SG) ((char*)(SG)->iov_base + 0) #define SG_SET(SG, B, L) ((SG)->iov_base = (char*)(B), (SG)->iov_len = (L)) /* Some of our own infrastructure where the WinSock stuff was too hairy |
