Commit 6b3c634e authored by daniel_e's avatar daniel_e
Browse files

Eeek, this macro makes use of a deprecated autoconf macro. Replace with

* configure.ac (AC_TYPE_MODE_T): Eeek, this macro makes use of a
deprecated autoconf macro.  Replace with AC_CHECK_TYPES([mode_t]).

* src/configdata.cc: Do "typedef int mode_t" if necessary.
parent 18cedf56
2002-11-20 Daniel Elstner <daniel.elstner@gmx.net>
* configure.ac (AC_TYPE_MODE_T): Eeek, this macro makes use of a
deprecated autoconf macro. Replace with AC_CHECK_TYPES([mode_t]).
* src/configdata.cc: Do "typedef int mode_t" if necessary.
2002-11-20 Daniel Elstner <daniel.elstner@gmx.net>
* configure.ac: Check for mode_t too since we need it for umask().
......
......@@ -31,7 +31,7 @@ AC_PROG_CXX()
AC_CHECK_HEADERS([sys/types.h sys/stat.h])
AC_CHECK_FUNCS([umask])
AC_TYPE_MODE_T()
AC_CHECK_TYPES([mode_t])
PKG_CHECK_MODULES([GTKMM], [glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-1.2 >= 1.2.1 gtkmm-2.0 >= 2.0.0])
AC_SUBST([GTKMM_CFLAGS])
......
......@@ -28,12 +28,19 @@
#include <config.h>
#if HAVE_UMASK
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#if !HAVE_MODE_T
typedef int mode_t;
#endif
#endif /* HAVE_UMASK */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment