mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
Getting rid of more warnings...
* iselect.c: Test for MISSING_BZERO_DECL, not DECLARE_BZERO; see today's change to ../configure.in. * scmsigs.c: Test for MISSING_USLEEP_DECL, not DECLARE_USLEEP. * scmconfig.h.in: Regenertaded.de.,.__ * stime.c (strptime): Declare this, #ifdef MISSING_STRPTIME_DECL. (scm_localtime, scm_mktime): Use a const char * to manipulate the time zone name.
This commit is contained in:
parent
41d368d9b7
commit
4d3bacdd7d
4 changed files with 13 additions and 6 deletions
|
@ -59,7 +59,7 @@
|
|||
#include "coop-threads.h"
|
||||
#endif
|
||||
|
||||
#ifdef DECLARE_BZERO
|
||||
#ifdef MISSING_BZERO_DECL
|
||||
extern void bzero (void *, size_t);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -162,10 +162,13 @@
|
|||
#undef HAVE_REGCOMP
|
||||
|
||||
/* Define if the operating system supplies bzero without declaring it. */
|
||||
#undef DECLARE_BZERO
|
||||
#undef MISSING_BZERO_DECL
|
||||
|
||||
/* Define if the operating system supplies usleep without declaring it. */
|
||||
#undef DECLARE_USLEEP
|
||||
#undef MISSING_USLEEP_DECL
|
||||
|
||||
/* Define if the operating system supplies strptime without declaring it. */
|
||||
#undef MISSING_STRPTIME_DECL
|
||||
|
||||
/* Define if usleep doesn't return a value. */
|
||||
#undef USLEEP_RETURNS_VOID
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(DECLARE_USLEEP) || (defined(GUILE_ISELECT) && !defined(HAVE_USLEEP))
|
||||
#if defined(MISSING_USLEEP_DECL) || (defined(GUILE_ISELECT) && !defined(HAVE_USLEEP))
|
||||
#ifdef USLEEP_RETURNS_VOID
|
||||
extern void usleep (unsigned);
|
||||
#else
|
||||
|
|
|
@ -80,6 +80,10 @@
|
|||
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
||||
#endif
|
||||
|
||||
#ifdef MISSING_STRPTIME_DECL
|
||||
extern char *strptime ();
|
||||
#endif
|
||||
|
||||
/* This should be figured out by autoconf. */
|
||||
#ifdef CLK_TCK
|
||||
# define CLKTCK CLK_TCK
|
||||
|
@ -318,7 +322,7 @@ scm_localtime (SCM time, SCM zone)
|
|||
err = errno;
|
||||
if (ltptr)
|
||||
{
|
||||
char *ptr;
|
||||
const char *ptr;
|
||||
|
||||
/* copy zone name before calling gmtime or tzset. */
|
||||
#ifdef HAVE_TM_ZONE
|
||||
|
@ -432,7 +436,7 @@ scm_mktime (SCM sbd_time, SCM zone)
|
|||
|
||||
if (itime != -1)
|
||||
{
|
||||
char *ptr;
|
||||
const char *ptr;
|
||||
|
||||
/* copy zone name before calling gmtime or tzset. */
|
||||
#ifdef HAVE_TM_ZONE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue