0002-Correct-path-to-string-h-from-bsd.patch 958 B

1234567891011121314151617181920212223242526
  1. From 347c23da1ec6f19b0b0143d53edcc209e522bbf2 Mon Sep 17 00:00:00 2001
  2. From: Oliver Falk <oliver@linux-kernel.at>
  3. Date: Wed, 29 Jun 2022 13:27:45 +0200
  4. Subject: [PATCH] Correct path to string.h (from bsd); Fixes #74
  5. [Retrieved (and backported) from:
  6. https://github.com/ofalk/libdnet/commit/347c23da1ec6f19b0b0143d53edcc209e522bbf2]
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. ---
  9. python/dnet.c | 64 +++++++++++++++++++++++--------------------------
  10. python/dnet.pyx | 2 +-
  11. 2 files changed, 31 insertions(+), 35 deletions(-)
  12. diff --git a/python/dnet.pyx b/python/dnet.pyx
  13. index d9cbc90..af65a11 100644
  14. --- a/python/dnet.pyx
  15. +++ b/python/dnet.pyx
  16. @@ -40,7 +40,7 @@ cdef extern from *:
  17. unsigned long htonl(unsigned long n)
  18. unsigned long ntohl(unsigned long n)
  19. -cdef extern from "string.h":
  20. +cdef extern from "bsd/string.h":
  21. int strlcpy(char *dst, char *src, int size)
  22. cdef __memcpy(char *dst, object src, int n):