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.

11 lines
632 B

  1. --- a/meson.build
  2. +++ b/meson.build
  3. @@ -25,7 +25,7 @@ conf = configuration_data()
  4. cc = meson.get_compiler('c')
  5. add_project_arguments(cc.get_supported_arguments(warning_flags), language : 'c')
  6. add_project_arguments('-D_DEFAULT_SOURCE', language : 'c')
  7. -add_project_arguments('-D_POSIX_C_SOURCE', language : 'c') # required for fileno
  8. +add_project_arguments('-D_POSIX_C_SOURCE=200809L', language : 'c') # required for fileno, nanosleep, and strndup
  9. add_project_arguments('-D_BSD_SOURCE', language : 'c') # required for glibc < v2.19
  10. add_project_arguments('-DFLASHROM_VERSION="' + meson.project_version() + '"', language : 'c')