DG/UX

Dave Lovelace dave at firstcomp.biz
Thu Dec 18 21:49:51 CET 2003


David Relson wrote:
> 
> Dave,
> 
> Thanks for finding the problem.  I've fixed it in CVS.
> 
> In the future, if you could use "diff -u" (or simply "diff") to submit a
> patch it would help ensure that the right change is made.  I think I've
> got it right, but lessening the change for a mistake is always good.
> 
At that point I hadn't made any change, just located where it was.  I've
put it in now, but hope not to actually remake THIS version, ever.  But
I've included it in what follows.

Which is all the changes (that I'm aware of) that I made.  This got so messy
that I could well be missing something.  And at least one of these (in
system.h) is (I believe) in code generated by the configure.  The change
to the configure script Matthias gave me, but probably isn't a good one
for general consumption - but I have no idea what should be done instead.

And I don't have (on this box) diff -u; I'm just concatenating together
a bunch of context diffs.  I hope that's OK.

And, finally, I refer again to all the warnings I got.  Some (where
prototypes didn't include "const", I think) probably are meaningless,
but to my not-all-that-educated eye some probably indicate real bugs.

-- 
- Dave Lovelace
  dave at firstcomp.biz
  davel at cyberspace.org


*** configure.20031215dl	Fri Dec 12 14:33:54 2003
--- configure	Mon Dec 15 12:40:28 2003
***************
*** 3345,3351 ****
        -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
        -Waggregate-return -Wmissing-declarations \
        -Wmissing-format-attribute -Wnested-externs \
!       -ggdb -fno-common -Wchar-subscripts -Wcomment \
        -Wimplicit -Wsequence-point -Wreturn-type \
        -Wfloat-equal $addopts \
        -Wno-system-headers
--- 3345,3351 ----
        -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
        -Waggregate-return -Wmissing-declarations \
        -Wmissing-format-attribute -Wnested-externs \
!        -fno-common -Wchar-subscripts -Wcomment \
        -Wimplicit -Wsequence-point -Wreturn-type \
        -Wfloat-equal $addopts \
        -Wno-system-headers
*** contrib/bogogrep.c.orig	Tue Jan 28 20:02:14 2003
--- contrib/bogogrep.c	Wed Dec 17 09:48:00 2003
***************
*** 17,22 ****
--- 17,26 ----
  #include <unistd.h>
  #include <fcntl.h>
  
+ #ifdef __DGUX__
+ #define MAP_FAILED (-1)
+ #endif
+ 
  #define ALPHABET 256
  
  /* vanilla Boyer-Moore-Horspool */
*** src/system.h.original	Fri Dec 12 14:07:41 2003
--- src/system.h	Wed Dec 17 09:53:11 2003
***************
*** 49,54 ****
--- 49,60 ----
  # include <string.h>
  #endif
  
+ /* This section added by Dave at FCI */
+ #ifdef __DGUX__
+   int strcasecmp(const char *s1, const char *s2);
+   int strncasecmp(const char *s1, const char *s2, size_t n);
+ #endif
+ 
  #if HAVE_STRINGS_H
  #include <strings.h>
  #endif
*** src/version.sh.original	Mon Dec  8 10:06:39 2003
--- src/version.sh	Thu Dec 18 15:27:13 2003
***************
*** 28,34 ****
  set -e
  
  if [ ! -z "$SUFFIX" ]; then
!     FILES=$(find $srcdir -name CVS -type d | while read a ; do find "$a" -name Entries -type f ; done)
      set +e
      DATE=CVStime_`perl -MHTTP::Date -e '
      $max = 0;
--- 28,34 ----
  set -e
  
  if [ ! -z "$SUFFIX" ]; then
!     FILES=$(find $srcdir -name CVS -type d -print | while read a ; do find "$a" -name Entries -type f -print ; done)
      set +e
      DATE=CVStime_`perl -MHTTP::Date -e '
      $max = 0;




More information about the Bogofilter mailing list