From 093855f12a00d4eacf548db6095235f970f88305 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 8 Mar 2010 00:25:22 +0200 Subject: [PATCH] Remove unneeded includes of sys/types.h --- include/dwarf.h | 4 ---- src/dwarf/Lexpr.c | 8 -------- src/dwarf/Lfde.c | 8 -------- src/dwarf/Lfind_proc_info-lsb.c | 8 -------- src/dwarf/Lparser.c | 8 -------- src/dwarf/Lpe.c | 8 -------- src/dwarf/Lstep.c | 8 -------- src/mi/Ldestroy_addr_space.c | 8 -------- src/mi/Ldyn-extract.c | 8 -------- src/mi/Lfind_dynamic_proc_info.c | 8 -------- src/mi/Lget_accessors.c | 8 -------- src/mi/Lget_fpreg.c | 8 -------- src/mi/Lget_proc_info_by_ip.c | 8 -------- src/mi/Lget_proc_name.c | 8 -------- src/mi/Lget_reg.c | 8 -------- src/mi/Lput_dynamic_unwind_info.c | 8 -------- src/mi/Lset_caching_policy.c | 8 -------- src/mi/Lset_fpreg.c | 8 -------- src/mi/Lset_reg.c | 8 -------- src/mi/backtrace.c | 10 +--------- src/setjmp/longjmp.c | 8 -------- src/x86_64/Gis_signal_frame.c | 10 ---------- src/x86_64/Lcreate_addr_space.c | 8 -------- src/x86_64/Lget_proc_info.c | 8 -------- src/x86_64/Lget_save_loc.c | 8 -------- src/x86_64/Lglobal.c | 8 -------- src/x86_64/Linit.c | 8 -------- src/x86_64/Linit_local.c | 8 -------- src/x86_64/Linit_remote.c | 8 -------- src/x86_64/Lis_signal_frame.c | 8 -------- src/x86_64/Lregs.c | 8 -------- src/x86_64/Lresume.c | 8 -------- src/x86_64/Lstep.c | 8 -------- 33 files changed, 1 insertion(+), 263 deletions(-) diff --git a/include/dwarf.h b/include/dwarf.h index c6b95b71..37b5ec1c 100644 --- a/include/dwarf.h +++ b/include/dwarf.h @@ -34,10 +34,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ # include #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #include struct dwarf_cursor; /* forward-declaration */ diff --git a/src/dwarf/Lexpr.c b/src/dwarf/Lexpr.c index b72fce08..245970c9 100644 --- a/src/dwarf/Lexpr.c +++ b/src/dwarf/Lexpr.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/dwarf/Lfde.c b/src/dwarf/Lfde.c index 9c22b618..e779e8f1 100644 --- a/src/dwarf/Lfde.c +++ b/src/dwarf/Lfde.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/dwarf/Lfind_proc_info-lsb.c b/src/dwarf/Lfind_proc_info-lsb.c index c9865634..27a5eeac 100644 --- a/src/dwarf/Lfind_proc_info-lsb.c +++ b/src/dwarf/Lfind_proc_info-lsb.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/dwarf/Lparser.c b/src/dwarf/Lparser.c index 0c379003..f23aaf48 100644 --- a/src/dwarf/Lparser.c +++ b/src/dwarf/Lparser.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/dwarf/Lpe.c b/src/dwarf/Lpe.c index f302638d..a672358f 100644 --- a/src/dwarf/Lpe.c +++ b/src/dwarf/Lpe.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/dwarf/Lstep.c b/src/dwarf/Lstep.c index 2b70fa48..c1ac3c75 100644 --- a/src/dwarf/Lstep.c +++ b/src/dwarf/Lstep.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Ldestroy_addr_space.c b/src/mi/Ldestroy_addr_space.c index a1330987..5bf9364b 100644 --- a/src/mi/Ldestroy_addr_space.c +++ b/src/mi/Ldestroy_addr_space.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Ldyn-extract.c b/src/mi/Ldyn-extract.c index e348f831..1802f865 100644 --- a/src/mi/Ldyn-extract.c +++ b/src/mi/Ldyn-extract.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lfind_dynamic_proc_info.c b/src/mi/Lfind_dynamic_proc_info.c index 081065f7..bc88e1c5 100644 --- a/src/mi/Lfind_dynamic_proc_info.c +++ b/src/mi/Lfind_dynamic_proc_info.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lget_accessors.c b/src/mi/Lget_accessors.c index 72c22b5d..555e37f3 100644 --- a/src/mi/Lget_accessors.c +++ b/src/mi/Lget_accessors.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lget_fpreg.c b/src/mi/Lget_fpreg.c index 6492a5a2..e3be4414 100644 --- a/src/mi/Lget_fpreg.c +++ b/src/mi/Lget_fpreg.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lget_proc_info_by_ip.c b/src/mi/Lget_proc_info_by_ip.c index e5d63c15..96910d83 100644 --- a/src/mi/Lget_proc_info_by_ip.c +++ b/src/mi/Lget_proc_info_by_ip.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lget_proc_name.c b/src/mi/Lget_proc_name.c index 0f8c753f..378097b5 100644 --- a/src/mi/Lget_proc_name.c +++ b/src/mi/Lget_proc_name.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lget_reg.c b/src/mi/Lget_reg.c index 6ca62007..effe8a80 100644 --- a/src/mi/Lget_reg.c +++ b/src/mi/Lget_reg.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lput_dynamic_unwind_info.c b/src/mi/Lput_dynamic_unwind_info.c index 573e8ecc..99597cd5 100644 --- a/src/mi/Lput_dynamic_unwind_info.c +++ b/src/mi/Lput_dynamic_unwind_info.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lset_caching_policy.c b/src/mi/Lset_caching_policy.c index 0be4cbf1..cc18816b 100644 --- a/src/mi/Lset_caching_policy.c +++ b/src/mi/Lset_caching_policy.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lset_fpreg.c b/src/mi/Lset_fpreg.c index a903f239..2497d404 100644 --- a/src/mi/Lset_fpreg.c +++ b/src/mi/Lset_fpreg.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/Lset_reg.c b/src/mi/Lset_reg.c index c84d4669..c7a872b0 100644 --- a/src/mi/Lset_reg.c +++ b/src/mi/Lset_reg.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/mi/backtrace.c b/src/mi/backtrace.c index 640675ce..46d6c97f 100644 --- a/src/mi/backtrace.c +++ b/src/mi/backtrace.c @@ -24,16 +24,8 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef UNW_REMOTE_ONLY + #define UNW_LOCAL_ONLY - -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #include /* See glibc manual for a description of this function. */ diff --git a/src/setjmp/longjmp.c b/src/setjmp/longjmp.c index 09662edc..ca5f1e42 100644 --- a/src/setjmp/longjmp.c +++ b/src/setjmp/longjmp.c @@ -23,14 +23,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include diff --git a/src/x86_64/Gis_signal_frame.c b/src/x86_64/Gis_signal_frame.c index ce81699f..fd6599c1 100644 --- a/src/x86_64/Gis_signal_frame.c +++ b/src/x86_64/Gis_signal_frame.c @@ -25,16 +25,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#include - #include "unwind_i.h" #ifdef __linux__ diff --git a/src/x86_64/Lcreate_addr_space.c b/src/x86_64/Lcreate_addr_space.c index 7cde3622..0f2dc6be 100644 --- a/src/x86_64/Lcreate_addr_space.c +++ b/src/x86_64/Lcreate_addr_space.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lget_proc_info.c b/src/x86_64/Lget_proc_info.c index 83086c32..69028b01 100644 --- a/src/x86_64/Lget_proc_info.c +++ b/src/x86_64/Lget_proc_info.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lget_save_loc.c b/src/x86_64/Lget_save_loc.c index 1f6aeb5c..9ea048a9 100644 --- a/src/x86_64/Lget_save_loc.c +++ b/src/x86_64/Lget_save_loc.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lglobal.c b/src/x86_64/Lglobal.c index 85c5d336..6d7b489e 100644 --- a/src/x86_64/Lglobal.c +++ b/src/x86_64/Lglobal.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Linit.c b/src/x86_64/Linit.c index 36f0ad49..e9abfdd4 100644 --- a/src/x86_64/Linit.c +++ b/src/x86_64/Linit.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Linit_local.c b/src/x86_64/Linit_local.c index eee77a37..68a1687e 100644 --- a/src/x86_64/Linit_local.c +++ b/src/x86_64/Linit_local.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Linit_remote.c b/src/x86_64/Linit_remote.c index 11e68b47..58cb04ab 100644 --- a/src/x86_64/Linit_remote.c +++ b/src/x86_64/Linit_remote.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lis_signal_frame.c b/src/x86_64/Lis_signal_frame.c index 4820751e..b9a7c4f5 100644 --- a/src/x86_64/Lis_signal_frame.c +++ b/src/x86_64/Lis_signal_frame.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lregs.c b/src/x86_64/Lregs.c index f120896f..2c9c75cd 100644 --- a/src/x86_64/Lregs.c +++ b/src/x86_64/Lregs.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lresume.c b/src/x86_64/Lresume.c index 3b9591a4..41a8cf00 100644 --- a/src/x86_64/Lresume.c +++ b/src/x86_64/Lresume.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) diff --git a/src/x86_64/Lstep.c b/src/x86_64/Lstep.c index 2b70fa48..c1ac3c75 100644 --- a/src/x86_64/Lstep.c +++ b/src/x86_64/Lstep.c @@ -1,11 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include -#endif - -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #define UNW_LOCAL_ONLY #include #if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY)