1
0

cherry-pick.softflowd-0.9.9-13-g49c039a.added-define-default-source-line-to-avoid-warning-in-linux.patch 552 B

123456789101112131415
  1. Subject: Added define _DEFAULT_SOURCE line to avoid warning in Linux
  2. Origin: softflowd-0.9.9-13-g49c039a <https://github.com/irino/softflowd/commit/softflowd-0.9.9-13-g49c039a>
  3. Upstream-Author: Hitoshi Irino <irino@sfc.wide.ad.jp>
  4. Date: Fri Sep 14 15:37:53 2018 +0900
  5. --- a/common.h
  6. +++ b/common.h
  7. @@ -28,6 +28,7 @@
  8. #include "config.h"
  9. #define _BSD_SOURCE /* Needed for BSD-style struct ip,tcp,udp on Linux */
  10. +#define _DEFAULT_SOURCE /* It is recommended to use instead of _BSD_SOURCE on Linux */
  11. #include <sys/types.h>
  12. #include <sys/stat.h>