diff options
Diffstat (limited to 'sysdeps/unix/bsd')
-rw-r--r-- | sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h | 4 | ||||
-rw-r--r-- | sysdeps/unix/bsd/unlockpt.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h b/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h index d70dfe4031..4d5fa1d33a 100644 --- a/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h +++ b/sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h @@ -1,5 +1,5 @@ /* Definition of `struct sockaddr_*' common members. 4.4 BSD version. - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -38,5 +38,7 @@ typedef unsigned char sa_family_t; #define __SOCKADDR_COMMON_SIZE (2 * sizeof (unsigned char)) +/* Return the length of a `sockaddr' structure. */ +#define SA_LEN(_x) ((_x)->sa_len) #endif /* bits/sockaddr.h */ diff --git a/sysdeps/unix/bsd/unlockpt.c b/sysdeps/unix/bsd/unlockpt.c index 3de46eeda9..b25231c865 100644 --- a/sysdeps/unix/bsd/unlockpt.c +++ b/sysdeps/unix/bsd/unlockpt.c @@ -34,7 +34,7 @@ unlockpt (fd) { char buf[PTYNAMELEN]; - if (ptsname_r (fd, buf, PTYNAMELEN)) + if (__ptsname_r (fd, buf, PTYNAMELEN)) return -1; return revoke (buf); |