summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2010-01-15 01:02:27 -0800
committerRoland McGrath <[email protected]>2010-01-15 01:02:27 -0800
commitb337b1fd5f3b3410fe522a690ccee70bce8519ee (patch)
treebbcd7b587b878bd50382308ea621da58582e9cc7
parent5f2116092632c8d600e2d7d87fc919aed37a1c04 (diff)
Fix sloppy #include use, breaks with latest glibc.
-rw-r--r--src/ChangeLog8
-rw-r--r--src/ar.c3
-rw-r--r--src/elflint.c1
-rw-r--r--src/readelf.c1
-rw-r--r--src/strip.c3
-rw-r--r--src/unstrip.c3
6 files changed, 16 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c4b5b053..ee1b733f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-15 Roland McGrath <[email protected]>
+
+ * ar.c: Include <sys/stat.h>.
+ * elflint.c: Likewise.
+ * readelf.c: Likewise.
+ * strip.c: Likewise.
+ * unstrip.c: Likewise
+
2010-01-07 Roland McGrath <[email protected]>
* readelf.c (print_ehdr): Handle PN_XNUM.
diff --git a/src/ar.c b/src/ar.c
index 5d7a6e76..149d116d 100644
--- a/src/ar.c
+++ b/src/ar.c
@@ -1,5 +1,5 @@
/* Create, modify, and extract from archives.
- Copyright (C) 2005, 2007, 2009 Red Hat, Inc.
+ Copyright (C) 2005-2010 Red Hat, Inc.
Written by Ulrich Drepper <[email protected]>, 2005.
Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -45,6 +45,7 @@
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/stat.h>
#include <sys/time.h>
#include <system.h>
diff --git a/src/elflint.c b/src/elflint.c
index 63d8389e..531122bf 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -42,6 +42,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <sys/stat.h>
#include <sys/param.h>
#include <elf-knowledge.h>
diff --git a/src/readelf.c b/src/readelf.c
index 44648669..6ba259cf 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -49,6 +49,7 @@
#include <time.h>
#include <unistd.h>
#include <sys/param.h>
+#include <sys/stat.h>
#include <system.h>
#include "../libelf/libelfP.h"
diff --git a/src/strip.c b/src/strip.c
index 32cf0d70..7b2b889a 100644
--- a/src/strip.c
+++ b/src/strip.c
@@ -1,5 +1,5 @@
/* Discard section not used at runtime from object files.
- Copyright (C) 2000-2008, 2009 Red Hat, Inc.
+ Copyright (C) 2000-2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <[email protected]>, 2000.
@@ -46,6 +46,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
+#include <sys/stat.h>
#include <sys/time.h>
#include <elf-knowledge.h>
diff --git a/src/unstrip.c b/src/unstrip.c
index 284607b3..0984e6bc 100644
--- a/src/unstrip.c
+++ b/src/unstrip.c
@@ -1,5 +1,5 @@
/* Combine stripped files with separate symbols and debug information.
- Copyright (C) 2007, 2009 Red Hat, Inc.
+ Copyright (C) 2007-2010 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Roland McGrath <[email protected]>, 2007.
@@ -52,6 +52,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <sys/stat.h>
#include <gelf.h>
#include <libebl.h>