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.

40 lines
787 B

  1. --- a/driver_ais.c
  2. +++ b/driver_ais.c
  3. @@ -24,6 +24,7 @@
  4. /* strlcpy() needs _DARWIN_C_SOURCE */
  5. #define _DARWIN_C_SOURCE
  6. +#define _BSD_SOURCE
  7. #include <stdlib.h>
  8. #include <string.h>
  9. --- a/gpsctl.c
  10. +++ b/gpsctl.c
  11. @@ -15,6 +15,7 @@
  12. /* strlcpy() needs _DARWIN_C_SOURCE */
  13. #define _DARWIN_C_SOURCE
  14. +#define _BSD_SOURCE
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. --- a/gpsd_json.c
  18. +++ b/gpsd_json.c
  19. @@ -24,6 +24,7 @@ PERMISSIONS
  20. #define __DARWIN_C_LEVEL 200112L
  21. /* strlcpy() needs _DARWIN_C_SOURCE */
  22. #define _DARWIN_C_SOURCE
  23. +#define _BSD_SOURCE
  24. #include <stdio.h>
  25. #include <math.h>
  26. --- a/libgpsd_core.c
  27. +++ b/libgpsd_core.c
  28. @@ -20,6 +20,7 @@
  29. /* strlcpy() needs _DARWIN_C_SOURCE */
  30. #define _DARWIN_C_SOURCE
  31. +#define _BSD_SOURCE
  32. #include <time.h>
  33. #include <stdio.h>