Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" with glibc 2.20 #3

Closed
akien-mga opened this issue Jan 14, 2015 · 1 comment

Comments

@akien-mga
Copy link
Contributor

I get such warnings at each compilation step with glibc 2.20:

In file included from /usr/include/assert.h:35:0,
                 from src/engine/common/Pointers.h:5,
                 from src/engine/common/Common.h:4,
                 from src/engine/common/ports/Unix.h:4,
                 from src/engine/common/ports/Unix.cpp:1:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^

It seems you just need to define _DEFAULT_SOURCE to fix this warning, see (among other sources):
https://ghc.haskell.org/trac/ghc/ticket/9185
http://permalink.gmane.org/gmane.comp.version-control.git/257209

mgerhardy added a commit that referenced this issue Jan 14, 2015
…ted, use _DEFAULT_SOURCE" with glibc 2.20)
@mgerhardy
Copy link
Owner

should be fixed - thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants