Mercurial > sdl-ios-xcode
diff src/cdrom/linux/SDL_syscdrom.c @ 1341:d02b552e5304
Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 12:11:33 +0000 |
parents | 604d73db6802 |
children | c71e05b4dc2e |
line wrap: on
line diff
--- a/src/cdrom/linux/SDL_syscdrom.c Tue Feb 07 11:18:21 2006 +0000 +++ b/src/cdrom/linux/SDL_syscdrom.c Tue Feb 07 12:11:33 2006 +0000 @@ -22,6 +22,7 @@ /* Functions for system-level CD-ROM audio control */ +#include <string.h> /* For strerror() */ #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> @@ -215,7 +216,7 @@ tmp = SDL_strstr(mntent->mnt_opts, "fs="); if ( tmp ) { SDL_free(mnt_type); - mnt_type = strdup(tmp + SDL_strlen("fs=")); + mnt_type = SDL_strdup(tmp + SDL_strlen("fs=")); if ( mnt_type ) { tmp = SDL_strchr(mnt_type, ','); if ( tmp ) { @@ -226,7 +227,7 @@ tmp = SDL_strstr(mntent->mnt_opts, "dev="); if ( tmp ) { SDL_free(mnt_dev); - mnt_dev = strdup(tmp + SDL_strlen("dev=")); + mnt_dev = SDL_strdup(tmp + SDL_strlen("dev=")); if ( mnt_dev ) { tmp = SDL_strchr(mnt_dev, ','); if ( tmp ) {