[patch] not all OSes define daylight in <time.h>
Cellular manager for mobile phones/modems
Brought to you by:
marcinello,
nijel
From: Boris S. <bs...@ip...> - 2011-01-28 12:09:33
|
Hello List, while updating the port (1.28.0->1.29.0) comms/gammu at FreeBSD I've got an error "daylight not defined". Well, yes, it's not defined at FreeBSD. I've come up with the following patch: ----- --- include/gammu-datetime.h.orig 2011-01-19 10:33:05.000000000 +0300 +++ include/gammu-datetime.h 2011-01-28 14:00:45.206537651 +0300 @@ -17,6 +17,14 @@ #include <gammu-statemachine.h> /** + * Checkup if the XSI POSIX extension, daylight, is not + * declared in <time.h> + */ +#ifndef daylight +#define daylight 0 +#endif + +/** * Structure used for saving date and time * * \ingroup DateTime ----- -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve |