Check for getc_unlocked.
2006-12-22 Matthias Clasen <mclasen@redhat.com>
* configure.in: Check for getc_unlocked.
* gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
unavailable. (#381499)
This commit is contained in:
parent
f905c6cf68
commit
7f0d30a0cc
3 changed files with 10 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
2006-12-22 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Check for getc_unlocked.
|
||||
|
||||
* gtk/xdgmime/xdgmimemagic.c: Use getc if getc_unlocked is
|
||||
unavailable. (#381499)
|
||||
|
||||
* tests/teststatusicon.c: Fix a typo
|
||||
|
||||
|
|
|
|||
|
|
@ -398,7 +398,7 @@ if test "x$enable_rebuilds" = "xyes" && \
|
|||
fi
|
||||
AC_SUBST(REBUILD)
|
||||
|
||||
AC_CHECK_FUNCS(lstat mkstemp flockfile)
|
||||
AC_CHECK_FUNCS(lstat mkstemp flockfile getc_unlocked)
|
||||
|
||||
# _NL_TIME_FIRST_WEEKDAY is an enum and not a define
|
||||
AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY])
|
||||
|
|
|
|||
|
|
@ -47,6 +47,10 @@
|
|||
#define TRUE (!FALSE)
|
||||
#endif
|
||||
|
||||
#if !defined getc_unlocked && !defined HAVE_GETC_UNLOCKED
|
||||
# define getc_unlocked(fp) getc (fp)
|
||||
#endif
|
||||
|
||||
typedef struct XdgMimeMagicMatch XdgMimeMagicMatch;
|
||||
typedef struct XdgMimeMagicMatchlet XdgMimeMagicMatchlet;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue