Re: conflicting types for 'getline'

2013-01-25 Thread Mark Kettenis
Date: Thu, 03 Jan 2013 16:10:02 -0500 From: Todd C. Miller todd.mil...@courtesan.com On Thu, 03 Jan 2013 13:42:06 EST, Todd C. Miller wrote: On Wed, 02 Jan 2013 20:03:32 -0430, Andres Perera wrote: `gcc -ansi` defines __STRICT_ANSI which could be checked before setting

Re: conflicting types for 'getline'

2013-01-03 Thread Philip Guenther
On Thu, 3 Jan 2013, Todd C. Miller wrote: Something like this for example. Looks like the right idea, but, the macro has trailing underbars too: $ gcc -dD -std=c89 -E - /dev/null | grep STRICT_ANSI #define __STRICT_ANSI__ 1 $

Re: conflicting types for 'getline'

2013-01-03 Thread Todd C. Miller
On Thu, 03 Jan 2013 13:16:20 PST, Philip Guenther wrote: Looks like the right idea, but, the macro has trailing underbars too: Good catch. - todd

conflicting types for 'getline'

2013-01-02 Thread Matthew Szudzik
Synopsis: conflicting types for 'getline' Category: library Environment: System : OpenBSD 5.2 Details : OpenBSD 5.2 (GENERIC.MP) #339: Wed Aug 1 10:13:24 MDT 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP

Re: conflicting types for 'getline'

2013-01-02 Thread Andres Perera
On Wed, Jan 2, 2013 at 11:57 AM, Matthew Szudzik mszud...@cmu.edu wrote: How-To-Repeat: Place the program on page 29 of KR in a file named test.c. Or alternatively, place the following program in test.c. #include stdio.h int getline();