libretro-common: fix implicit declarations

strdup and realpath are only declared by glibc's headers if
_XOPEN_SOURCE >= 500.
This commit is contained in:
Adam Sampson 2024-05-13 12:47:10 +01:00
parent 4a53a30b91
commit 738298a9e8
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
#include <stdlib.h> #include <stdlib.h>
#include <boolean.h> #include <boolean.h>
#include <string.h> #include <string.h>