changeset 1168:a8252a1c38ea

* src/strptime.cxx: Added string.h to fix compile warnings. * cdl/time.cdl: Updated the requires statement for BSD string functions to use the interface rather than the option name.
author asl
date Mon, 18 Aug 2003 20:07:15 +0000
parents ebabafdc2d94
children 83f799d5b41a
files packages/language/c/libc/time/current/ChangeLog packages/language/c/libc/time/current/cdl/time.cdl packages/language/c/libc/time/current/src/strptime.cxx
diffstat 3 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/language/c/libc/time/current/ChangeLog
+++ b/packages/language/c/libc/time/current/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-18  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/strptime.cxx: Added string.h to fix compile warnings.  
+	* cdl/time.cdl: Updated the requires statement for BSD string
+	functions to use the interface rather than the option name.
+	
 2003-06-26  Brij Bihari Pandey  <fuzzhead012@yahoo.com>
 2003-06-26  Jonathan Larmour  <jifl@eCosCentric.com>
 
--- a/packages/language/c/libc/time/current/cdl/time.cdl
+++ b/packages/language/c/libc/time/current/cdl/time.cdl
@@ -123,7 +123,7 @@ cdl_package CYGPKG_LIBC_TIME {
     cdl_option CYGFUN_LIBC_TIME_POSIX {
         display       "POSIX time functions"
         default_value 1
-        requires      CYGFUN_LIBC_STRING_BSD_FUNCS
+        requires      CYGINT_ISO_STRING_BSD_FUNCS
         compile       strptime.cxx
         description   "
             Enabling this option allows the use of the
--- a/packages/language/c/libc/time/current/src/strptime.cxx
+++ b/packages/language/c/libc/time/current/src/strptime.cxx
@@ -38,6 +38,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <ctype.h>
+#include <string.h>
 #include <time.h>
 
 static const char *weekdays[] = {