Skip to content

Commit

Permalink
configure: use AC_USE_SYSTEM_EXTENSIONS to determine features
Browse files Browse the repository at this point in the history
The AC_USE_SYSTEM_EXTENSIONS will enable everything that a system allows
to be enabled, so there is no longer need for a source file specific
*_SOURCE definitions.  Secondly the uses of _BSD_SOURCE that are removed
in this change are part of deprecated API.  See reference link for
details.

Reference: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=c941736c92fa3a319221f65f6755659b2a5e0a20
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
  • Loading branch information
kerolasa authored and Alexandra Yates committed Nov 25, 2014
1 parent 9a42ace commit 52cac9a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -18,6 +18,7 @@ AC_CONFIG_FILES([
])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_MACRO_DIR([m4])
AC_USE_SYSTEM_EXTENSIONS
AC_CONFIG_HEADERS([config.h])
GETTEXT_PACKAGE=powertop
AC_SUBST([GETTEXT_PACKAGE])
Expand Down
2 changes: 0 additions & 2 deletions src/report/report-formatter-base.cpp
Expand Up @@ -23,8 +23,6 @@
* Written by Igor Zhbanov <i.zhbanov@samsung.com>
* 2012.10 */

#define _BSD_SOURCE

/* Uncomment to disable asserts */
/*#define NDEBUG*/

Expand Down
2 changes: 0 additions & 2 deletions src/report/report-formatter-csv.cpp
Expand Up @@ -23,8 +23,6 @@
* Written by Igor Zhbanov <i.zhbanov@samsung.com>
* 2012.10 */

#define _BSD_SOURCE

/* Uncomment to disable asserts */
/*#define NDEBUG*/

Expand Down
2 changes: 0 additions & 2 deletions src/report/report-formatter-html.cpp
Expand Up @@ -23,8 +23,6 @@
* Written by Igor Zhbanov <i.zhbanov@samsung.com>
* 2012.10 */

#define _BSD_SOURCE

/* Uncomment to disable asserts */
/*#define NDEBUG*/

Expand Down

0 comments on commit 52cac9a

Please sign in to comment.