[office/tellico/4.2] src/3rdparty/btparse: don't leave _POSIX_C_SOURCE undefined
Robby Stephenson <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit b43c4f8ce63c55e76035048fffd090017644e25f by Robby Stephenson. Committed on 16/08/2026 at 22:04. Pushed by rstephenson into branch '4.2'. don't leave _POSIX_C_SOURCE undefined M +5 -2 src/3rdparty/btparse/btparse.h https://invent.kde.org/office/tellico/-/commit/b43c4f8ce63c55e76035048fffd090017644e25f diff --git a/src/3rdparty/btparse/btparse.h b/src/3rdparty/btparse/btparse.h index 74d809629..87f684ffc 100644 --- a/src/3rdparty/btparse/btparse.h +++ b/src/3rdparty/btparse/btparse.h @@ -362,8 +362,11 @@ char * bt_format_name (bt_name * name, bt_name_format * format); // If POSIX_SOURCE existed before, bring back the saved value #undef _POSIX_C_SOURCE #ifdef TEMP_SAVE_POSIX_C_SOURCE - #define _POSIX_C_SOURCE TEMP_SAVE_POSIX_C_SOURCE - #undef TEMP_SAVE_POSIX_C_SOURCE + #define _POSIX_C_SOURCE TEMP_SAVE_POSIX_C_SOURCE + #undef TEMP_SAVE_POSIX_C_SOURCE +#else +// revert back to what had been the default (i.e. don't leave _POSIX_C_SOURCE undefined) + #define _POSIX_C_SOURCE 200809L #endif #endif /* BTPARSE_H */