delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/05/12/22:01:14

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Authenticated: #27081556
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: incompatible implicit declaration of built-in function 'exit' in misc.c
Date: Fri, 13 May 2005 04:09:39 +0200
User-Agent: KMail/1.5.1
MIME-Version: 1.0
Message-Id: <200505130409.39527.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
Reply-To: djgpp-workers AT delorie DOT com

gcc 4.0.0 complains while compiling djgpp cvs tree about:

gcc -O2 misc.c -o misc.exe
misc.c: In function 'main':
misc.c:29: warning: incompatible implicit declaration of built-in function 'exit'
misc.c:35: warning: incompatible implicit declaration of built-in function 'exit'
misc.c:56: warning: incompatible implicit declaration of built-in function 'exit'
misc.c:61: warning: incompatible implicit declaration of built-in function 'exit'

Regards,
Juan M. Guerrero


diff -aprNU3 djgpp.orig/src/misc.c djgpp/src/misc.c
--- djgpp.orig/src/misc.c	1997-11-14 20:53:06.000000000 +0000
+++ djgpp/src/misc.c	2005-05-13 03:08:26.000000000 +0000
@@ -1,5 +1,6 @@
 /* Copyright (C) 1997 DJ Delorie, see COPYING.DJ for details */
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 /* Miscellaneous things that are hard to do the same

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019