Commit b005459a authored by David Carlier's avatar David Carlier

Merge branch 'bsd_build_fixes' into 'master'

on BSD systems, stdlib.h is needed for alloca.

See merge request !1
parents 442e0438 3fad77ad
......@@ -36,6 +36,7 @@
#endif
#include <assert.h>
#include <stdlib.h>
#include "ecc.h"
#include "ecc-internal.h"
......
......@@ -36,6 +36,7 @@
#endif
#include <assert.h>
#include <stdlib.h>
#include "ecc.h"
#include "ecc-internal.h"
......
......@@ -30,6 +30,7 @@
#endif
#include <stdio.h>
#include <stdlib.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
......@@ -143,7 +144,7 @@ static struct _getopt_data getopt_data;
whose names are inconsistent. */
#ifndef getenv
extern char *getenv ();
extern char *getenv (const char *);
#endif
#endif /* not __GNU_LIBRARY__ */
......
......@@ -166,7 +166,7 @@ extern int __posix_getopt (int ___argc, char *const *___argv,
# endif
# endif
#else /* not __GNU_LIBRARY__ */
extern int getopt ();
extern int getopt (int argc, char *const *argv, const char *optstring);
#endif /* __GNU_LIBRARY__ */
#ifndef __need_getopt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment