Include stdlib.h

This commit is contained in:
steve 2001-06-23 18:41:02 +00:00
parent c4bd8b1463
commit 0340256b4c
2 changed files with 10 additions and 2 deletions

View File

@ -17,7 +17,7 @@ const char COPYRIGHT[] =
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: main.c,v 1.9 2001/05/20 18:08:07 steve Exp $" #ident "$Id: main.c,v 1.10 2001/06/23 18:41:02 steve Exp $"
#endif #endif
const char NOTICE[] = const char NOTICE[] =
@ -39,6 +39,7 @@ const char NOTICE[] =
const char VERSION[] = "$Name: $ $State: Exp $"; const char VERSION[] = "$Name: $ $State: Exp $";
# include <stdio.h> # include <stdio.h>
# include <stdlib.h>
# include <malloc.h> # include <malloc.h>
# include <unistd.h> # include <unistd.h>
# include <string.h> # include <string.h>
@ -183,6 +184,9 @@ int main(int argc, char*argv[])
/* /*
* $Log: main.c,v $ * $Log: main.c,v $
* Revision 1.10 2001/06/23 18:41:02 steve
* Include stdlib.h
*
* Revision 1.9 2001/05/20 18:08:07 steve * Revision 1.9 2001/05/20 18:08:07 steve
* local declares if the header is missing. * local declares if the header is missing.
* *

View File

@ -19,7 +19,7 @@ const char COPYRIGHT[] =
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: main.cc,v 1.41 2001/05/20 17:35:05 steve Exp $" #ident "$Id: main.cc,v 1.42 2001/06/23 18:41:02 steve Exp $"
#endif #endif
const char NOTICE[] = const char NOTICE[] =
@ -44,6 +44,7 @@ const char NOTICE[] =
# include <queue> # include <queue>
# include <map> # include <map>
# include <unistd.h> # include <unistd.h>
# include <stdlib.h>
#if defined(HAVE_GETOPT_H) #if defined(HAVE_GETOPT_H)
# include <getopt.h> # include <getopt.h>
#endif #endif
@ -336,6 +337,9 @@ int main(int argc, char*argv[])
/* /*
* $Log: main.cc,v $ * $Log: main.cc,v $
* Revision 1.42 2001/06/23 18:41:02 steve
* Include stdlib.h
*
* Revision 1.41 2001/05/20 17:35:05 steve * Revision 1.41 2001/05/20 17:35:05 steve
* declare getopt by hand in mingw32 compile. * declare getopt by hand in mingw32 compile.
* *