From Adrien Destugues <pulkomandy@xxxxxxxxx>:
Adrien Destugues has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/1633
Change subject: Add a features.h to auto enable _BSD_SOURCE
......................................................................
Add a features.h to auto enable _BSD_SOURCE
Unless __STRICT_ANSI__ is defined (as it is when running the compiler in
--std=c89 or --std=c99, but not when running it without any specific
args), we can enable these by default and behave like most other
systems. I don't know why no one has done this yet despite suggesting it
multiple times and people prefer to #define _BSD_SOURCE manually
everywhere.
---
M headers/compatibility/bsd/arpa/ftp.h
M headers/compatibility/bsd/arpa/telnet.h
M headers/compatibility/bsd/arpa/tftp.h
M headers/compatibility/bsd/endian.h
M headers/compatibility/bsd/err.h
M headers/compatibility/bsd/errno.h
A headers/compatibility/bsd/features.h
M headers/compatibility/bsd/ifaddrs.h
M headers/compatibility/bsd/libutil.h
M headers/compatibility/bsd/netinet/in_systm.h
M headers/compatibility/bsd/paths.h
M headers/compatibility/bsd/pty.h
M headers/compatibility/bsd/readpassphrase.h
M headers/compatibility/bsd/signal.h
M headers/compatibility/bsd/stdio.h
M headers/compatibility/bsd/stdlib.h
M headers/compatibility/bsd/string.h
M headers/compatibility/bsd/stringlist.h
M headers/compatibility/bsd/sys/cdefs.h
M headers/compatibility/bsd/sys/ioccom.h
M headers/compatibility/bsd/sys/md4.h
M headers/compatibility/bsd/sys/md5.h
M headers/compatibility/bsd/sys/param.h
M headers/compatibility/bsd/sys/queue.h
M headers/compatibility/bsd/sys/time.h
M headers/compatibility/bsd/sys/wait.h
M headers/compatibility/bsd/time.h
M headers/compatibility/bsd/unistd.h
M headers/compatibility/bsd/vis.h
29 files changed, 41 insertions(+), 0 deletions(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/33/1633/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1633
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I6db04da5f6db437723cdfba3478f5094a69d7727
Gerrit-Change-Number: 1633
Gerrit-PatchSet: 1
Gerrit-Owner: Adrien Destugues <pulkomandy@xxxxxxxxx>
Gerrit-MessageType: newchange