Use g_strerror() instead of strerror().

Remove build system checks for strerror().

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3047 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-10-06 18:37:10 +00:00
parent e13eb4148b
commit bed14c6353
4 changed files with 5 additions and 7 deletions

View File

@ -16,6 +16,9 @@
* wscript, waf: * wscript, waf:
Update waf to its latest SVN version (nearly 1.5.0). Update waf to its latest SVN version (nearly 1.5.0).
Adjust wscript to latest Waf API changes. Adjust wscript to latest Waf API changes.
* configure.in, wscript, tagmanager/ctags.c, src/tools.c:
Use g_strerror() instead of strerror().
Remove build system checks for strerror().
2008-10-03 Frank Lanitz <frank(at)frank(dot)uvena(dot)de> 2008-10-03 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>

View File

@ -275,7 +275,7 @@ void tools_execute_custom_command(GeanyDocument *doc, const gchar *command)
if (wrote < 0) if (wrote < 0)
{ {
g_warning("%s: %s: %s\n", __func__, "Failed sending data to command", g_warning("%s: %s: %s\n", __func__, "Failed sending data to command",
strerror(errno)); g_strerror(errno));
break; break;
} }
remaining -= wrote; remaining -= wrote;

View File

@ -285,11 +285,7 @@ extern void error (const errorSelection selection,
selected (selection, WARNING) ? "Warning: " : ""); selected (selection, WARNING) ? "Warning: " : "");
vfprintf (errout, format, ap); vfprintf (errout, format, ap);
if (selected (selection, PERROR)) if (selected (selection, PERROR))
#ifdef HAVE_STRERROR fprintf (errout, " : %s", g_strerror (errno));
fprintf (errout, " : %s", strerror (errno));
#else
perror (" ");
#endif
fputs ("\n", errout); fputs ("\n", errout);
va_end (ap); va_end (ap);
if (selected (selection, FATAL)) if (selected (selection, FATAL))

View File

@ -161,7 +161,6 @@ def configure(conf):
conf.check(function_name='ftruncate', header_name='unistd.h') conf.check(function_name='ftruncate', header_name='unistd.h')
conf.check(function_name='gethostname', header_name='unistd.h') conf.check(function_name='gethostname', header_name='unistd.h')
conf.check(function_name='mkstemp', header_name='stdlib.h') conf.check(function_name='mkstemp', header_name='stdlib.h')
conf.check(function_name='strerror', header_name='string.h')
conf.check(function_name='strstr', header_name='string.h', mandatory=True) conf.check(function_name='strstr', header_name='string.h', mandatory=True)
# check for cxx after the header and function checks have been done to ensure they are # check for cxx after the header and function checks have been done to ensure they are