1/*	$NetBSD: alloca.h,v 1.3 2021/08/14 16:14:55 christos Exp $	*/
2
3/* Generic alloca.h */
4/* $OpenLDAP$ */
5/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
6 *
7 * Copyright 1998-2021 The OpenLDAP Foundation.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted only as authorized by the OpenLDAP
12 * Public License.
13 *
14 * A copy of this license is available in file LICENSE in the
15 * top-level directory of the distribution or, alternatively, at
16 * <http://www.OpenLDAP.org/license.html>.
17 */
18
19#ifndef _AC_ALLOCA_H
20#define _AC_ALLOCA_H
21
22/*
23 * use of alloca is disallowed as it is machine dependent
24 */
25#error  "alloca() not supported, use malloc()"
26
27/* AIX requires this to be the first thing in the file.  */
28#ifdef __GNUC__
29# define alloca __builtin_alloca
30#else
31# ifdef HAVE_ALLOCA_H
32#  include <alloca.h>
33# else
34#  ifdef _AIX
35#pragma alloca
36#  else
37#   ifndef alloca /* predefined by HP cc +Olibcalls */
38extern char *(alloca)();
39#   endif
40#  endif
41# endif
42#endif
43
44
45#endif /* _AC_ALLOCA_H */
46