1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/biology/nab/files/patch-ag
James E. Housley 28dc48de23 Initiail version of nab (4.2)
PR:		21585
Submitted by:	M. L. Dodson <bdodson@scms.utmb.EDU>
2000-10-10 02:57:23 +00:00

33 lines
631 B
Plaintext

*** src/database.c.orig Tue Apr 21 12:17:17 1998
--- src/database.c Tue Mar 9 09:09:06 1999
***************
*** 73,78 ****
--- 73,85 ----
#include "database.h"
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)
+ #include <sys/param.h>
+ #endif
+
+ #if defined(BSD)
+ #include <math.h>
+ #endif
#ifndef TRUE
#define TRUE 1
***************
*** 985,991 ****
--- 992,1002 ----
sDBRemoveLeadingSpaces( sLine );
sDBRemoveFirstString( sLine, sHead );
+ #if defined(linux) || defined(BSD)
+ sscanf( sHead, "%lg", dPDbl );
+ #else
sscanf( sHead, "%lG", dPDbl );
+ #endif
}