- (dtucker) [includes.h] Bug #1122: __USE_GNU is a glibc internal macro, use

_GNU_SOURCE instead.  Patch from t8m at centrum.cz.
This commit is contained in:
Darren Tucker 2005-11-28 22:28:59 +11:00
parent 3a4634f674
commit ac0c8a533d
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,8 @@
20051128 20051128
- (dtucker) [regress/yes-head.sh] Work around breakage caused by some - (dtucker) [regress/yes-head.sh] Work around breakage caused by some
versions of GNU head. Based on patch from zappaman at buraphalinux.org versions of GNU head. Based on patch from zappaman at buraphalinux.org
- (dtucker) [includes.h] Bug #1122: __USE_GNU is a glibc internal macro, use
_GNU_SOURCE instead. Patch from t8m at centrum.cz.
- (dtucker) OpenBSD CVS Sync - (dtucker) OpenBSD CVS Sync
- dtucker@cvs.openbsd.org 2005/11/28 05:16:53 - dtucker@cvs.openbsd.org 2005/11/28 05:16:53
[ssh-keygen.1 ssh-keygen.c] [ssh-keygen.1 ssh-keygen.c]
@ -3373,4 +3375,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.4011 2005/11/28 06:05:40 dtucker Exp $ $Id: ChangeLog,v 1.4012 2005/11/28 11:28:59 dtucker Exp $

View File

@ -21,6 +21,8 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
#include "config.h" #include "config.h"
#define _GNU_SOURCE /* activate extra prototypes for glibc */
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
@ -67,7 +69,6 @@ static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
#ifdef HAVE_NEXT #ifdef HAVE_NEXT
# include <libc.h> # include <libc.h>
#endif #endif
#define __USE_GNU /* before unistd.h, activate extra prototypes for glibc */
#include <unistd.h> /* For STDIN_FILENO, etc */ #include <unistd.h> /* For STDIN_FILENO, etc */
#include <termios.h> /* Struct winsize */ #include <termios.h> /* Struct winsize */