]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix workaround for Sun C++ recommended by Phil Stracchino
authorKern Sibbald <kern@sibbald.com>
Thu, 27 Feb 2020 11:47:52 +0000 (12:47 +0100)
committerKern Sibbald <kern@sibbald.com>
Thu, 27 Feb 2020 11:47:52 +0000 (12:47 +0100)
bacula/autoconf/config.h.in

index dacb235fe245c0294c4d9ef8bdb313f5b70ca3b0..85d0e5641589845bf72783c0e0b2d0819f0febca 100644 (file)
 /* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be
    automatically deduced at runtime.
-       STACK_DIRECTION > 0 => grows toward higher addresses
-       STACK_DIRECTION < 0 => grows toward lower addresses
-       STACK_DIRECTION = 0 => direction of growth unknown */
+        STACK_DIRECTION > 0 => grows toward higher addresses
+        STACK_DIRECTION < 0 => grows toward lower addresses
+        STACK_DIRECTION = 0 => direction of growth unknown */
 #undef STACK_DIRECTION
 
 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
    restrict; if so, hopefully it defines __RESTRICT like Sun C does.  */
 #if defined __SUNPRO_CC && !defined __RESTRICT
 # define _Restrict
+#ifndef __restrict__
 # define __restrict__
 #endif
+#endif
 
 /* Define to empty if the C compiler doesn't support this keyword. */
 #undef signed