gcc complains about BSD_SOURCE now

This commit is contained in:
Enno Rehling 2016-11-25 09:54:05 +00:00
parent 78e63ed4c6
commit c9c4f5dd37
1 changed files with 2 additions and 7 deletions

View File

@ -81,17 +81,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#endif /* _MSC_VER_ */
#if defined __GNUC__
# undef _BSD_SOURCE
# define _BSD_SOURCE
# undef _DEFAULT_SOURCE
# define _DEFAULT_SOURCE
# undef __USE_BSD
# define __USE_BSD
#endif
#ifdef _BSD_SOURCE
# undef __EXTENSIONS__
# define __EXTENSIONS__
#endif
#ifdef SOLARIS
# define _SYS_PROCSET_H
#undef _XOPEN_SOURCE