rsyslog-0001-revert-strdup.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. Revert upstream 0403361ac57082dc47840d1f31832f1a0e319078
  2. It breaks the build when it's defined.
  3. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  4. diff -Nura rsyslog-7.6.6.orig/grammar/lexer.c rsyslog-7.6.6/grammar/lexer.c
  5. --- rsyslog-7.6.6.orig/grammar/lexer.c 2014-10-01 10:12:34.960082719 -0300
  6. +++ rsyslog-7.6.6/grammar/lexer.c 2014-10-01 10:13:24.512769964 -0300
  7. @@ -1459,7 +1459,6 @@
  8. #line 32 "lexer.l"
  9. #include "config.h"
  10. #include "parserif.h"
  11. -extern char *strdup(char*); /* somehow we do not get this from string.h... */
  12. /*%option noyywrap nodefault case-insensitive */
  13. /* avoid compiler warning: `yyunput' defined but not used */
  14. #define YY_NO_INPUT 1
  15. diff -Nura rsyslog-7.6.6.orig/grammar/lexer.l rsyslog-7.6.6/grammar/lexer.l
  16. --- rsyslog-7.6.6.orig/grammar/lexer.l 2014-10-01 10:12:34.960082719 -0300
  17. +++ rsyslog-7.6.6/grammar/lexer.l 2014-10-01 10:13:41.935363172 -0300
  18. @@ -31,7 +31,6 @@
  19. %{
  20. #include "config.h"
  21. #include "parserif.h"
  22. -extern char *strdup(char*); /* somehow we do not get this from string.h... */
  23. %}
  24. %option noyywrap nodefault case-insensitive yylineno