From: Ben Pfaff Date: Wed, 10 Feb 2010 03:23:40 +0000 (-0800) Subject: odt: Remove dependency on because mingw32 does not have it. X-Git-Tag: v0.7.4~11 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=4d7a2ed5af5d8323e9c08ecb32c67b3c04d36a9a odt: Remove dependency on because mingw32 does not have it. The "meta:initial-creator" and "meta:creator" fields do not seem to me to be important enough to have to deal with this dependency. Reported by unknown-1 . --- diff --git a/src/output/odt.c b/src/output/odt.c index bfc698e7..66e986be 100644 --- a/src/output/odt.c +++ b/src/output/odt.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -255,25 +254,15 @@ write_meta_data (struct odt_driver *odt) { char buf[30]; - struct passwd *pw = getpwuid (getuid ()); time_t t = time (NULL); struct tm *tm = localtime (&t); strftime (buf, 30, "%Y-%m-%dT%H:%M:%S", tm); - xmlTextWriterStartElement (w, _xml ("meta:initial-creator")); - xmlTextWriterWriteString (w, _xml (strtok (pw->pw_gecos, ","))); - xmlTextWriterEndElement (w); - xmlTextWriterStartElement (w, _xml ("meta:creation-date")); xmlTextWriterWriteString (w, _xml (buf)); xmlTextWriterEndElement (w); - xmlTextWriterStartElement (w, _xml ("dc:creator")); - xmlTextWriterWriteString (w, _xml (strtok (pw->pw_gecos, ","))); - - xmlTextWriterEndElement (w); - xmlTextWriterStartElement (w, _xml ("dc:date")); xmlTextWriterWriteString (w, _xml (buf)); xmlTextWriterEndElement (w);