2
1

0001-ppp-manager-fix-build-with-Linux-3.2.0-headers.patch 973 B

123456789101112131415161718192021222324252627282930
  1. From 22b99e3bbb2ca33963e839f12ab95314ab8d9ba9 Mon Sep 17 00:00:00 2001
  2. From: Lubomir Rintel <lkundrak@v3.sk>
  3. Date: Fri, 15 May 2015 16:37:20 +0200
  4. Subject: [PATCH] ppp-manager: fix build with Linux 3.2.0 headers
  5. Fixes build with Ubuntu 12.04.
  6. In file included from ppp-manager/nm-ppp-manager.c:42:0:
  7. /usr/include/linux/if_ppp.h:103:16: error: field 'b' has incomplete type
  8. /usr/include/linux/if_ppp.h:108:21: error: field 'b' has incomplete type
  9. Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
  10. ---
  11. src/ppp-manager/nm-ppp-manager.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/src/ppp-manager/nm-ppp-manager.c b/src/ppp-manager/nm-ppp-manager.c
  14. index e27c82b..d410ebf 100644
  15. --- a/src/ppp-manager/nm-ppp-manager.c
  16. +++ b/src/ppp-manager/nm-ppp-manager.c
  17. @@ -39,6 +39,7 @@
  18. #ifndef aligned_u64
  19. #define aligned_u64 unsigned long long __attribute__((aligned(8)))
  20. #endif
  21. +#include <linux/if.h>
  22. #include <linux/if_ppp.h>
  23. #include "NetworkManagerUtils.h"
  24. --
  25. 2.1.4