Menu

#3 Fix errors with gcc42 for FreeBSD

open
nobody
None
5
2013-02-17
2008-07-15
Dirk Meyer
No

--- src/toss/dbz.c.orig Wed Oct 18 23:53:57 2000
+++ src/toss/dbz.c Mon Jul 22 19:52:59 2002
@@ -300,8 +300,10 @@
#endif

/* externals used */
+#ifndef __FreeBSD__
extern char *malloc();
extern char *calloc();
+#endif
extern void free(); /* ANSI C; some old implementations say int */
extern int atoi();
extern long atol();
--- src/common/log.c.orig Sun Feb 16 16:38:56 2003
+++ src/common/log.c Sat Aug 21 11:10:09 2004
@@ -69,8 +69,8 @@
char *strerror(int errnum)
{
#ifndef OS2
- extern int sys_nerr;
# ifndef __FreeBSD__
+ extern int sys_nerr;
extern char *sys_errlist[];
# endif
#endif

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.