summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-01-05 15:09:08 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-05 15:09:08 +0200
commitdab8a648dbc91b56c4b375cf2218a769856b8e34 (patch)
treec5b5e8d518ce3e71df22e2e481eea20afaea3d79
parent0c15e5feb333b88b5a5a525d588601d381df654c (diff)
downloadlibrpm-tizen-dab8a648dbc91b56c4b375cf2218a769856b8e34.tar.gz
librpm-tizen-dab8a648dbc91b56c4b375cf2218a769856b8e34.tar.bz2
librpm-tizen-dab8a648dbc91b56c4b375cf2218a769856b8e34.zip
Loose string header compatibility goo
- <string.h> is required by C standard, we dont support ancient non-conformant compilers anyway
-rw-r--r--configure.ac2
-rw-r--r--system.h9
2 files changed, 0 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac
index 01cd71fef..e936791ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -704,13 +704,11 @@ AC_CHECK_FUNC(getmntent, AC_DEFINE(HAVE_GETMNTENT, 1, [Define if you have the ge
if echo "$host_os" | grep sco > /dev/null; then
echo "hacking things up for sco"
- AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)])
AC_DEFINE(HAVE_STRUCT_MNTTAB, 1,
[Define as 1 if you have "struct mnttab" (only sco?)])
elif echo "$host_os" | grep sunos > /dev/null; then
echo "hacking things up for sunos"
CFLAGS="$CFLAGS -D__USE_FIXED_PROTOTYPES__"
- AC_DEFINE(NEED_STRINGS_H, 1, [Define as one if we need to include <strings.h> (along with <string.h>)])
fi
#
diff --git a/system.h b/system.h
index a6e585e64..1101ed9bd 100644
--- a/system.h
+++ b/system.h
@@ -33,12 +33,7 @@ extern char ** environ;
#endif
#ifdef HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
# include <string.h>
-#else
-# include <strings.h>
#endif
#if !defined(HAVE_STPCPY)
@@ -165,8 +160,4 @@ extern const char *__progname;
#include "misc/fnmatch.h"
#endif
-#if NEED_STRINGS_H
-#include <strings.h>
-#endif
-
#endif /* H_SYSTEM */