You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ia...@apache.org on 2002/01/11 21:55:58 UTC

cvs commit: apr-util/test testdbm.c

ianh        02/01/11 12:55:58

  Modified:    test     testdbm.c
  Log:
  make this compile on sun.
  
  Revision  Changes    Path
  1.14      +3 -2      apr-util/test/testdbm.c
  
  Index: testdbm.c
  ===================================================================
  RCS file: /home/cvs/apr-util/test/testdbm.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- testdbm.c	9 Dec 2001 20:13:29 -0000	1.13
  +++ testdbm.c	11 Jan 2002 20:55:58 -0000	1.14
  @@ -169,7 +169,7 @@
               break;
           default:
               show_usage();
  -            fputs(stderr, "unknown option.");
  +            fputs("unknown option.",stderr);
               exit(-1);
               break;
           }
  @@ -408,9 +408,10 @@
           fprintf(stderr, "%s: ", progname);
       }
       fprintf(stderr, s1, s2);
  -
  +#if !defined(sun)
       if (errno > 0 && errno < sys_nerr)
           fprintf(stderr, " (%s)", sys_errlist[errno]);
  +#endif
   
       fprintf(stderr, "\n");