summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2013-11-12 22:34:42 +0000
committerDmitry V. Levin <ldv@altlinux.org>2013-11-12 22:44:40 +0000
commit0506f0f430c15677c7724f9c4500093e0e7e15d3 (patch)
tree39af41183c33df60163f494865cc35b9bd677002
parent157f98aac598261de1703e212683ad5a1f067acb (diff)
downloadstrace-0506f0f430c15677c7724f9c4500093e0e7e15d3.tar.gz
strace-0506f0f430c15677c7724f9c4500093e0e7e15d3.tar.bz2
strace-0506f0f430c15677c7724f9c4500093e0e7e15d3.tar.xz
Stop using _LFS64_LARGEFILE
There is only one place left in the code where strace guesses whether libc provides LFS64 functions and structures. The most natural thing to do there is to check for _LARGEFILE64_SOURCE - the macro provided by glibc. Other libc implementations that provide nondegenerate LFS64 interfaces are expected to define this macro as well. * defs.h (_LFS64_LARGEFILE): Remove. * strace.c: Use _LARGEFILE64_SOURCE instead of _LFS64_LARGEFILE.
-rw-r--r--defs.h6
-rw-r--r--strace.c2
2 files changed, 1 insertions, 7 deletions
diff --git a/defs.h b/defs.h
index 5b2b0ca..6b5f650 100644
--- a/defs.h
+++ b/defs.h
@@ -30,12 +30,6 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-#ifdef _LARGEFILE64_SOURCE
-/* This is the macro everything checks before using foo64 names. */
-# ifndef _LFS64_LARGEFILE
-# define _LFS64_LARGEFILE 1
-# endif
-#endif
#ifdef MIPS
# include <sgidefs.h>
diff --git a/strace.c b/strace.c
index 32a3f5e..914b0a6 100644
--- a/strace.c
+++ b/strace.c
@@ -438,7 +438,7 @@ swap_uid(void)
}
}
-#if _LFS64_LARGEFILE
+#ifdef _LARGEFILE64_SOURCE
# define fopen_for_output fopen64
# define struct_stat struct stat64
# define stat_file stat64