eio: correctly define alloca

SVN revision: 79576
This commit is contained in:
Sebastian Dransfeld 2012-11-23 20:11:15 +00:00
parent 9b7086b9e3
commit b67bef4ed0
13 changed files with 119 additions and 4 deletions

View File

@ -180,6 +180,7 @@ AC_SUBST(lt_enable_auto_import)
### Checks for library functions
AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam])
AC_FUNC_ALLOCA
### Check for splice system call

View File

@ -17,6 +17,10 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -19,6 +19,10 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -19,6 +19,28 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#undef alloca
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -16,6 +16,11 @@
* License along with this library;
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -19,6 +19,10 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -17,6 +17,10 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -17,6 +17,28 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#undef alloca
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -17,6 +17,28 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#undef alloca
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -17,6 +17,28 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#undef alloca
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
#elif defined __GNUC__
# define alloca __builtin_alloca
#elif defined _AIX
# define alloca __alloca
#elif defined _MSC_VER
# include <malloc.h>
# define alloca _alloca
#else
# include <stddef.h>
# ifdef __cplusplus
extern "C"
# endif
void *alloca (size_t);
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -1,10 +1,6 @@
#ifndef EIO_PRIVATE_H_
#define EIO_PRIVATE_H_
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/types.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>

View File

@ -18,6 +18,11 @@
* License along with this library;
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"

View File

@ -17,6 +17,10 @@
* if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "eio_private.h"
#include "Eio.h"