Import patches from pkgsrc
* Adjust paths to modern conventions. * Avoid opening /dev/console. * Consistently provide lowercase and MixedCase options. * Don't abuse an int as a pointer (optarg). * Fix compilation errors on NetBSD and DragonFly BSD. * Fix documentation. * Import headers and remove redundant declarations. Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
b9687d1b88
commit
381c676eda
26 changed files with 143 additions and 98 deletions
|
|
@ -303,7 +303,7 @@ static open_unix()
|
|||
}
|
||||
|
||||
len = strlen(sunix.sun_path)+sizeof(sunix.sun_family);
|
||||
#if defined(__NetBSD__) || defined(__FreeBSD__)
|
||||
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
len += sizeof(sunix.sun_len);
|
||||
#endif
|
||||
if (connect(fd, (struct sockaddr *)&sunix, len)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue