mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
28dc48de23
PR: 21585 Submitted by: M. L. Dodson <bdodson@scms.utmb.EDU>
33 lines
631 B
Plaintext
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
|
|
|
|
}
|
|
|