[2179] in testers
[ckclark@Athena.MIT.EDU: rsaix 7.4G: redeclares free()]
daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sat Jul 4 22:50:01 1992
Date: Sat, 4 Jul 92 22:49:42 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: testers@Athena.MIT.EDU
----- Forwarded message
From: ckclark@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Subject: rsaix 7.4G: <sys/NLchar.h> redeclares free()
Date: Sat, 04 Jul 92 06:23:47 EDT
System name: rosebud
Type and version: POWER 7.4G (1 update(s) to same version)
Display type:
What were you trying to do?
Compile a program.
What's wrong:
<sys/NLchar.h> declares free() at the end:
extern NLchar *_NCgetbuf();
#ifndef _KERNEL
#ifdef _NO_PROTO
extern void free();
#else /*_NO_PROTO */
extern void free(void *ptr);
#endif /*_NO_PROTO */
#endif /* _KERNEL */
#endif /* _H_NLCHAR */
What should have happened:
That's the job of <stdlib.h>. Using this include file with stdlib.h
will produces compiler errors because of this redeclaration.
Please describe any relevant documentation references:
ANSI spec.
----- End of forwarded message