X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fac%2Falloca.h;h=5fdcfc3f3516344f7b1ec1dd539c2ebe77793c9d;hb=db9130b6a723bfd56da90e929c2397379ee21741;hp=80bcd44fee166e2f0d43b16417b92498ff61dacb;hpb=2a869f5a99f537b246ba8640502e2a86117cb6e8;p=openldap
diff --git a/include/ac/alloca.h b/include/ac/alloca.h
index 80bcd44fee..5fdcfc3f35 100644
--- a/include/ac/alloca.h
+++ b/include/ac/alloca.h
@@ -1,8 +1,27 @@
/* Generic alloca.h */
+/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 1998-2004 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
+ */
#ifndef _AC_ALLOCA_H
#define _AC_ALLOCA_H
+/*
+ * use of alloca is disallowed as it is machine dependent
+ */
+#error "alloca() not supported, use malloc()"
+
/* AIX requires this to be the first thing in the file. */
#ifdef __GNUC__
# define alloca __builtin_alloca
@@ -14,7 +33,7 @@
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
-char *alloca ();
+extern char *(alloca)();
# endif
# endif
# endif