Skip to content
Snippets Groups Projects
Commit d0d9f08b authored by Moe Jette's avatar Moe Jette
Browse files

Minor change in test code so required for AIX build.

parent 5c3fae51
No related branches found
No related tags found
No related merge requests found
......@@ -74,12 +74,14 @@ AC_DEFUN([X_AC_SLURM_WITH_SSL], [
# Basic test to check for compatible version and correct linking
AC_TRY_RUN(
[
#include <string.h>
#include <stdlib.h>
#include <openssl/rand.h>
#define SIZE 8
int main(void)
{
char a[2048];
memset(a, 0, sizeof(a));
int a[SIZE], i;
for (i=0; i<SIZE; i++)
a[i] = rand();
RAND_add(a, sizeof(a), sizeof(a));
return(RAND_status() <= 0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment