mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 06:41:13 +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"
|
#include "coop-threads.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DECLARE_BZERO
|
#ifdef MISSING_BZERO_DECL
|
||||||
extern void bzero (void *, size_t);
|
extern void bzero (void *, size_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -162,10 +162,13 @@
|
||||||
#undef HAVE_REGCOMP
|
#undef HAVE_REGCOMP
|
||||||
|
|
||||||
/* Define if the operating system supplies bzero without declaring it. */
|
/* 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. */
|
/* 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. */
|
/* Define if usleep doesn't return a value. */
|
||||||
#undef USLEEP_RETURNS_VOID
|
#undef USLEEP_RETURNS_VOID
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#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
|
#ifdef USLEEP_RETURNS_VOID
|
||||||
extern void usleep (unsigned);
|
extern void usleep (unsigned);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -80,6 +80,10 @@
|
||||||
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MISSING_STRPTIME_DECL
|
||||||
|
extern char *strptime ();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This should be figured out by autoconf. */
|
/* This should be figured out by autoconf. */
|
||||||
#ifdef CLK_TCK
|
#ifdef CLK_TCK
|
||||||
# define CLKTCK CLK_TCK
|
# define CLKTCK CLK_TCK
|
||||||
|
@ -318,7 +322,7 @@ scm_localtime (SCM time, SCM zone)
|
||||||
err = errno;
|
err = errno;
|
||||||
if (ltptr)
|
if (ltptr)
|
||||||
{
|
{
|
||||||
char *ptr;
|
const char *ptr;
|
||||||
|
|
||||||
/* copy zone name before calling gmtime or tzset. */
|
/* copy zone name before calling gmtime or tzset. */
|
||||||
#ifdef HAVE_TM_ZONE
|
#ifdef HAVE_TM_ZONE
|
||||||
|
@ -432,7 +436,7 @@ scm_mktime (SCM sbd_time, SCM zone)
|
||||||
|
|
||||||
if (itime != -1)
|
if (itime != -1)
|
||||||
{
|
{
|
||||||
char *ptr;
|
const char *ptr;
|
||||||
|
|
||||||
/* copy zone name before calling gmtime or tzset. */
|
/* copy zone name before calling gmtime or tzset. */
|
||||||
#ifdef HAVE_TM_ZONE
|
#ifdef HAVE_TM_ZONE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue