[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in gdbm 1.8.3: strings.h header not included
From: |
Ian McNish |
Subject: |
bug in gdbm 1.8.3: strings.h header not included |
Date: |
Fri, 03 Jan 2003 13:41:14 -0800 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126 |
ok, well 1.8.3 compiles but is throwing compiler warnings because you
don't include strings.h if string.h is present. unfortunately some
functions, e.g. bcopy and bcmp, are not prototyped in string.h on solaris.
"gdbmopen.c", line 348: warning: implicit function declaration: bcopy
"gdbmfetch.c", line 70: warning: implicit function declaration: bcopy
"gdbmstore.c", line 144: warning: implicit function declaration: bcopy
"gdbmseq.c", line 88: warning: implicit function declaration: bcopy
"findkey.c", line 112: warning: implicit function declaration: bcmp
autoconf.h:
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
systems.h:
#if HAVE_STRING_H
#include <string.h>
#else
#include <strings.h>
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug in gdbm 1.8.3: strings.h header not included,
Ian McNish <=