From 986f014ea6828c61021f9e7828326e1ea747a7b3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 7 Jun 2008 13:22:45 -0400 Subject: [PATCH] more: dont use a.out.h The a.out.h header is not friendly to portable systems (iow, those that lack a.out support), and since the defines are only used in a cheesy magic, just use the magic constants. It's not like they're ever going to change. Signed-off-by: Mike Frysinger --- text-utils/more.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/text-utils/more.c b/text-utils/more.c index dc38ff2a..41078d12 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -54,7 +54,6 @@ #include #include #include -#include #include "xstrncpy.h" #include "nls.h" #include "widechar.h" @@ -546,9 +545,9 @@ magic(f, fs) if (fread(twobytes, 2, 1, f) == 1) { switch(twobytes[0] + (twobytes[1]<<8)) { - case OMAGIC: /* 0407 */ - case NMAGIC: /* 0410 */ - case ZMAGIC: /* 0413 */ + case 0407: /* a.out obj */ + case 0410: /* a.out exec */ + case 0413: /* a.out demand exec */ case 0405: case 0411: case 0177545: -- 2.39.5