--- embedaddon/sudo/src/locale_stub.c 2013/10/14 07:56:35 1.1.1.2 +++ embedaddon/sudo/src/locale_stub.c 2014/06/15 16:12:55 1.1.1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 Todd C. Miller + * Copyright (c) 2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -21,18 +21,17 @@ #include #include +#define DEFAULT_TEXT_DOMAIN "sudo" +#include "gettext.h" /* must be included before missing.h */ + #include "missing.h" #include "fatal.h" +#ifdef HAVE_LIBINTL_H /* No need to swap locales in the front end. */ -void -warning_set_locale(void) +char * +warning_gettext(const char *msgid) { - return; + return gettext(msgid); } - -void -warning_restore_locale(void) -{ - return; -} +#endif /* HAVE_LIBINTL_H */