You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
865 B

  1. From 4fc2ce4a4bb83862679e40c09c684dbf266099f2 Mon Sep 17 00:00:00 2001
  2. From: Willy Tarreau <w@1wt.eu>
  3. Date: Wed, 10 Aug 2016 18:24:48 +0200
  4. Subject: [PATCH 17/26] BUILD: protocol: fix some build errors on OpenBSD
  5. Building 1.6 and above on OpenBSD 5.2 fails due to protocol.c not
  6. including sys/types.h before sys/socket.h :
  7. In file included from src/protocol.c:14:
  8. /usr/include/sys/socket.h:162: error: expected specifier-qualifier-list before 'u_int8_t'
  9. This fix needs to be backported to 1.6.
  10. (cherry picked from commit a6e3be7ae977ba907ec6ed028c5ab50a6a51886a)
  11. ---
  12. src/protocol.c | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/src/protocol.c b/src/protocol.c
  15. index 3caccb6..7884ef7 100644
  16. --- a/src/protocol.c
  17. +++ b/src/protocol.c
  18. @@ -10,6 +10,7 @@
  19. *
  20. */
  21. +#include <sys/types.h>
  22. #include <sys/socket.h>
  23. #include <common/config.h>
  24. --
  25. 2.7.3