Skip to content

Commit

Permalink
These two patches for apr and apr-util fix compile warnings on Solari…
Browse files Browse the repository at this point in the history
…s for

str* and mem* functions. This fixes all of them. APR_HAVE_STRINGS_H is now
defined in apr.h.
Submitted by:	Dale Ghent <[email protected]>
Reviewed by:	Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60987 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
trawick committed Dec 22, 2000
1 parent 5804043 commit 28adb1a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ AC_CHECK_HEADERS(stddef.h)
AC_CHECK_HEADERS(stdio.h, stdioh="1", stdioh="0")
AC_CHECK_HEADERS(stdlib.h, stdlibh="1", stdlibh="0")
AC_CHECK_HEADERS(string.h, stringh="1", stringh="0")
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(strings.h, stringsh="1", stringsh="0")
AC_CHECK_HEADERS(sysapi.h)
AC_CHECK_HEADERS(sysgtime.h)
AC_CHECK_HEADERS(termios.h)
Expand Down Expand Up @@ -324,6 +324,7 @@ AC_SUBST(stdargh)
AC_SUBST(stdioh)
AC_SUBST(stdlibh)
AC_SUBST(stringh)
AC_SUBST(stringsh)
AC_SUBST(sys_signalh)
AC_SUBST(sys_socketh)
AC_SUBST(sys_typesh)
Expand Down
2 changes: 1 addition & 1 deletion i18n/unix/xlate.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#ifdef HAVE_STDDEF_H
#include <stddef.h> /* for NULL */
#endif
#ifdef HAVE_STRINGS_H
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif
#ifdef HAVE_LANGINFO_H
Expand Down
1 change: 1 addition & 0 deletions include/apr.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#define APR_HAVE_STDIO_H @stdioh@
#define APR_HAVE_STDLIB_H @stdlibh@
#define APR_HAVE_STRING_H @stringh@
#define APR_HAVE_STRINGS_H @stringsh@
#define APR_HAVE_SYS_SIGNAL_H @sys_signalh@
#define APR_HAVE_SYS_SOCKET_H @sys_socketh@
#define APR_HAVE_SYS_TYPES_H @sys_typesh@
Expand Down
1 change: 1 addition & 0 deletions include/apr.hw
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
#define APR_HAVE_STDIO_H 1
#define APR_HAVE_STDLIB_H 1
#define APR_HAVE_STRING_H 1
#define APR_HAVE_STRINGS_H 0
#define APR_HAVE_SYS_SIGNAL_H 0
#define APR_HAVE_SYS_SOCKET_H 0
#define APR_HAVE_SYS_TYPES_H 1
Expand Down
2 changes: 1 addition & 1 deletion include/arch/unix/fileio.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
#if HAVE_STRING_H
#include <string.h>
#endif
#if HAVE_STRINGS_H
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif
#if APR_HAVE_DIRENT_H
Expand Down
2 changes: 1 addition & 1 deletion misc/unix/getuuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#include "apr_uuid.h"
#include "apr_md5.h"
#include "apr_general.h"
#ifdef HAVE_STRINGS_H
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif
#ifdef HAVE_NETDB_H
Expand Down
2 changes: 1 addition & 1 deletion passwd/apr_getpass.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRINGS_H
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion strings/apr_strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#ifdef HAVE_STDDEF_H
#include <stddef.h> /* NULL */
#endif
#ifdef HAVE_STRINGS_H
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion tables/apr_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#if APR_HAVE_STRINGS_H
#include <strings.h>
#endif

Expand Down

0 comments on commit 28adb1a

Please sign in to comment.