summaryrefslogtreecommitdiffstats
path: root/tests/test-flag-nobits.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-flag-nobits.c')
-rw-r--r--tests/test-flag-nobits.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-flag-nobits.c b/tests/test-flag-nobits.c
index e58d8c3d..ff19ce20 100644
--- a/tests/test-flag-nobits.c
+++ b/tests/test-flag-nobits.c
@@ -14,6 +14,10 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <fcntl.h>
#include <stdlib.h>
#include <gelf.h>
@@ -26,7 +30,7 @@ main (int argc, char **argv)
elf_version (EV_CURRENT);
- int fd = open64 (argv[1], O_RDONLY);
+ int fd = open (argv[1], O_RDONLY);
Elf *stripped = elf_begin (fd, ELF_C_READ, NULL);
Elf_Scn *scn = NULL;