pg_dumpall.c missing include time.h?

Started by Alvaro Herreraover 21 years ago2 messages
#1Alvaro Herrera
alvherre@dcc.uchile.cl

I got:

gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -Wmissing-declarations -I/home/alvherre/CVS/pgsql/source/13commitOpt/src/interfaces/libpq -I../../../src/include -I/home/alvherre/CVS/pgsql/source/13commitOpt/src/include -D_GNU_SOURCE -DFRONTEND -c -o pg_dumpall.o /home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c -MMD
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c: In function `dumpTimestamp':
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c:826: warning: implicit declaration of function `time'
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c:828: warning: implicit declaration of function `strftime'
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c:828: warning: implicit declaration of function `localtime'

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La naturaleza, tan fr�gil, tan expuesta a la muerte... y tan viva"

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Alvaro Herrera (#1)
Re: pg_dumpall.c missing include time.h?

Added time.h to pg_dumpall.c. Thanks.

---------------------------------------------------------------------------

Alvaro Herrera wrote:

I got:

gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -Wmissing-declarations -I/home/alvherre/CVS/pgsql/source/13commitOpt/src/interfaces/libpq -I../../../src/include -I/home/alvherre/CVS/pgsql/source/13commitOpt/src/include -D_GNU_SOURCE -DFRONTEND -c -o pg_dumpall.o /home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c -MMD
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c: In function `dumpTimestamp':
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c:826: warning: implicit declaration of function `time'
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c:828: warning: implicit declaration of function `strftime'
/home/alvherre/CVS/pgsql/source/13commitOpt/src/bin/pg_dump/pg_dumpall.c:828: warning: implicit declaration of function `localtime'

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La naturaleza, tan fr?gil, tan expuesta a la muerte... y tan viva"

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073