Package: boxes
Version: 1.0.1a-2
Followup-For: Bug #401741

I guess your fix is about this compile error:

gcc -ansi -I. -Iregexp -Wall -W -O   -c -o boxes.o boxes.c
boxes.c: In function 'is_dir':
boxes.c:328: error: 'S_IFMT' undeclared (first use in this function)
boxes.c:328: error: (Each undeclared identifier is reported only once
boxes.c:328: error: for each function it appears in.)
boxes.c:328: error: 'S_IFDIR' undeclared (first use in this function)
boxes.c: In function 'get_config_file':
boxes.c:381: warning: implicit declaration of function 'strdup'
boxes.c: In function 'process_commandline':
boxes.c:525: warning: implicit declaration of function 'getopt'
boxes.c:653: warning: implicit declaration of function 'strncasecmp'
boxes.c: In function 'style_sort':
boxes.c:901: warning: implicit declaration of function 'strcasecmp'
make[3]: *** [boxes.o] Error 1
make[3]: Leaving directory `/build/buildd/boxes-1.0.1a/src'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/build/buildd/boxes-1.0.1a/src'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/build/buildd/boxes-1.0.1a'
make: *** [build-stamp] Error 2

Hurd has exactly the same problem.
I've attached a different patch below that fixes this problem, but, imho, is
more standards compliant.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)

Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
--- orig/boxes-1.0.1a/src/boxes.c       2000-03-17 23:53:59.240000000 +0000
+++ boxes-1.0.1a/src/boxes.c    2008-05-07 16:40:58.340000000 +0000
@@ -325,7 +325,7 @@
         return -1;
     }
 
-    return (sinf.st_mode & S_IFMT) == S_IFDIR;
+    return (S_ISDIR(sinf.st_mode));
 }
 
 

Reply via email to