#include <errno.h>
#include <time.h>
#include <string.h>
-#include <tzfile.h>
#include <glib/gprintf.h>
#include <glib-unix.h>
g_ptr_array_add(timedated_freeable, statbuf);
g_ptr_array_add(timedated_freeable, tz_target_path);
- strlcat(tz_target_path, TZDIR, TZNAME_MAX);
+ strlcat(tz_target_path, OS_TIMEZONE_PATH, TZNAME_MAX);
strlcat(tz_target_path, "/", TZNAME_MAX);
strlcat(tz_target_path, proposed_tz, TZNAME_MAX);
memset(statbuf, 0, sizeof statbuf);
- if(!lstat(TZDEFAULT, statbuf))
- if(remove(TZDEFAULT))
+ if(!lstat(OS_LOCALTIME, statbuf))
+ if(remove(OS_LOCALTIME))
return FALSE;
- if(symlink(tz_target_path, TZDEFAULT))
+ if(symlink(tz_target_path, OS_LOCALTIME))
return FALSE;