Skip to content

Conversation

manishmalik
Copy link
Contributor

This patch, fixes the following error while building modsecurity:

make[2]: Entering directory `/opt/ModSecurity/examples/multithread_c'
gcc -DHAVE_CONFIG_H -I. -I../../src    -I../../headers -I../..  -g -O2 -MT multi-multi.o -MD -MP -MF .deps/multi-multi.Tpo -c -o multi-multi.o `test -f 'multi.c' || echo './'`multi.c
multi.c: In function 'main':
multi.c:113:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (int h = 0; h < FORKS; h++) {
     ^
multi.c:113:5: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [multi-multi.o] Error 1
make[2]: Leaving directory `/opt/ModSecurity/examples/multithread_c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/ModSecurity/examples'
make: *** [all-recursive] Error 1

@zimmerle
Copy link
Contributor

zimmerle commented May 5, 2016

Hi @manishmalik,

Thank you for the pull request! Patch merged!

@zimmerle zimmerle closed this May 5, 2016
@manishmalik manishmalik deleted the libmodsecurity branch May 5, 2016 19:55
@manishmalik manishmalik restored the libmodsecurity branch May 13, 2016 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants