Skip to content

glibc warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE #1978

@imax9000

Description

@imax9000

Compiling jq 1.6 with glibc >=2.20 (2.20 released 5 years ago!) gives a warning:

In file included from jq/src/builtin.c:10:
In file included from /usr/include/sys/time.h:21:
/usr/include/features.h:184:3: warning: "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

Relevant piece from glibc 2.20 release notes:

* The _BSD_SOURCE and _SVID_SOURCE feature test macros are no longer
  supported; they now act the same as _DEFAULT_SOURCE (but generate a
  warning). 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions