Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA28375; Fri, 18 Sep 92 12:07:21 -0700
Date: Fri, 18 Sep 92 12:07:21 -0700
Message-Id: <9209181907.AA28375@postgres.Berkeley.EDU>
From: klein@imasun.lbl.gov (Gregory Klein)
Subject: postgres and ansi c
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu

Has anyone else used SUN's acc ansi compiler with postgres.  I get the
following two conflicts when I try to compile a program that includes
the <stdlib.h> file:

"/usr/postgres/src/lib/H/tmp/c.h", line 476: identifier redeclared: malloc
"/usr/postgres/src/lib/H/tmp/c.h", line 481: identifier redeclared: free


To make the program compile, I had to take out the malloc and free defines in
.../tmp/c.h.

Is this a problem with SUN's ansi compiler or with the Postgres file?

-Greg Klein
