summaryrefslogtreecommitdiff
path: root/usr.bin/rdist/isexec.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-09 19:13:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-09 19:13:03 +0000
commita58ac6b9916fc64d49516fc50e9133c04064cbc2 (patch)
treea15a2c85e4034c9d91f4802600e185d7af5f5d32 /usr.bin/rdist/isexec.c
parenta7b11bf01f1ed38cd8f930b5a53b0497a88feead (diff)
Fix noexec option on ELF systems
Diffstat (limited to 'usr.bin/rdist/isexec.c')
-rw-r--r--usr.bin/rdist/isexec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/rdist/isexec.c b/usr.bin/rdist/isexec.c
index 9abbd21b8ad..251778d85f5 100644
--- a/usr.bin/rdist/isexec.c
+++ b/usr.bin/rdist/isexec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isexec.c,v 1.4 1998/06/26 21:21:12 millert Exp $ */
+/* $OpenBSD: isexec.c,v 1.5 2002/05/09 19:13:02 millert Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -38,7 +38,7 @@ static char RCSid[] =
"$From: isexec.c,v 6.21 1994/04/01 23:44:10 mcooper Exp $";
#else
static char RCSid[] =
-"$OpenBSD: isexec.c,v 1.4 1998/06/26 21:21:12 millert Exp $";
+"$OpenBSD: isexec.c,v 1.5 2002/05/09 19:13:02 millert Exp $";
#endif
static char sccsid[] = "@(#)client.c";
@@ -75,7 +75,7 @@ static int _isexec(fd)
/*
* Elf
*/
-#include <elf.h>
+#include <elf_abi.h>
#define ISELF(h) (h.e_type == ET_EXEC)
#endif /* EXE_ELF_AND_COFF || EXE_ELF */
@@ -122,7 +122,6 @@ typedef union {
/*
* Elf
*/
-#include <elf.h>
typedef Elf32_Ehdr hdr_t;
#endif /* EXE_TYPE == EXE_ELF */