VMS: only use _realloc32 with /POINTER_SIZE=32
authorRichard Levitte <levitte@openssl.org>
Tue, 6 Sep 2016 15:39:35 +0000 (17:39 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 15 Sep 2016 08:33:42 +0000 (10:33 +0200)
This fixes the following error when building with no particular pointer size
is specified (implied 32 bit):

    static void *(*realloc_func) (void *, size_t) = realloc;
    ................................................^
    %CC-E-UNDECLARED, In the initializer for realloc_func, "_realloc32" is not declared.
    at line number 93 in file DEV:[OPENSSL102.crypto]mem.c;1

Reviewed-by: Andy Polyakov <appro@openssl.org>
crypto/mem.c

index 9c4513552991bc3d08fabbe8cbed39c60c16850c..06c3960cc6c05b2cf630aad503df8c4af2ee7ea3 100644 (file)
@@ -85,7 +85,7 @@ static void *(*malloc_ex_func) (size_t, const char *file, int line)
 #ifdef OPENSSL_SYS_VMS
 # if __INITIAL_POINTER_SIZE == 64
 #  define realloc _realloc64
-# else
+# elif __INITIAL_POINTER_SIZE == 32
 #  define realloc _realloc32
 # endif
 #endif