diff options
| author | Bruce Richardson <[email protected]> | 2023-08-02 13:31:34 +0100 |
|---|---|---|
| committer | David Marchand <[email protected]> | 2023-08-03 15:10:53 +0200 |
| commit | 33d66940e9bab36bae88cf4e1b09f53fe60cd44d (patch) | |
| tree | c4caac4200742e99c02e4306f51b9863934d1284 /meson.build | |
| parent | 0ae35eceb9e4569b0814fcf671b4455301bb7518 (diff) | |
build: use C11 standard
As previously announced, DPDK 23.11 will require a C11 supporting
compiler and will use the C11 standard in all builds.
Forcing use of the C standard, rather than the standard with
GNU extensions, means that some posix definitions which are not in
the C standard are unavailable by default. We fix this by ensuring
the correct defines or cflags are passed to the components that
need them.
Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Morten Brørup <[email protected]>
Acked-by: Tyler Retzlaff <[email protected]>
Tested-by: Ali Alnubani <[email protected]>
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 39cb73846d..70b54f0c98 100644 --- a/meson.build +++ b/meson.build @@ -9,6 +9,7 @@ project('DPDK', 'c', license: 'BSD', default_options: [ 'buildtype=release', + 'c_std=c11', 'default_library=static', 'warning_level=2', ], |
