On Wed, Jun 08, 2005 at 03:26:33PM +0200, Torsten HOMEYER wrote: > Log: > fix wrong ifdef > > Summary: > Revision Changes Path > 1.6 +1 -1 openpkg-src/ssmtp/ssmtp.patch > ____________________________________________________________________________ > > patch -p0 <<'@@ .' > Index: openpkg-src/ssmtp/ssmtp.patch > ============================================================================ > $ cvs diff -u -r1.5 -r1.6 ssmtp.patch > --- openpkg-src/ssmtp/ssmtp.patch 8 Jun 2005 13:17:23 -0000 1.5 > +++ openpkg-src/ssmtp/ssmtp.patch 8 Jun 2005 13:26:32 -0000 1.6 > @@ -18,7 +18,7 @@ > > /* RFC822 format string borrowed from GNU shellutils date.c */ > - const char *format = "%a, %_d %b %Y %H:%M:%S %z"; > -+#ifdef __SUNOS__ > ++#ifdef __sun > + const char *format = "%a, %d %b %Y %H:%M:%S %Z"; > +#else > + const char *format = "%a, %d %b %Y %H:%M:%S %z"; > Portable across versions of Solaris and both sparc and intel compilers gcc, Sun workshop, and others is:
#if defined (__SVR4) && defined (__sun) Regards, Michael
pgplZ3sHmZh94.pgp
Description: PGP signature