HewlettPackard / netperf

Netperf is a benchmark that can be used to measure the performance of many different types of networking. It provides tests for both unidirectional throughput, and end-to-end latency.
MIT License
859 stars 187 forks source link

configure.ac: Build with -D_GNU_SOURCE if possible #73

Closed fweimer-rh closed 1 year ago

fweimer-rh commented 1 year ago

This ensures that sched_setaffinity is declared in when building against glibc, so that there is no implicit function declaration in netlib.c.

Related to:

dankamongmen commented 1 year ago

@fweimer-rh , i was going to point you at my #74 which i just did before seeing this. with that said, you're florian-freakin'-weimar, and who am i to correct you? but i do believe AC_GNU_SOURCE has been deprecated in favor of AC_USE_SYSTEM_EXTENSIONS, which i used in #74.

from specific.m4 from debian's autoconf 2.71-3:

# AC_GNU_SOURCE
# -------------
AU_DEFUN([AC_GNU_SOURCE], [AC_USE_SYSTEM_EXTENSIONS])
fweimer-rh commented 1 year ago

74 with AC_USE_SYSTEM_EXTENSIONS will work for us downstream, too, thanks.