|
From: Joern E. <je...@us...> - 2002-05-05 01:26:07
|
Update of /cvsroot/squeak/squeak/platforms/Cross/plugins/Mpeg3Plugin/libmpeg
In directory usw-pr-cvs1:/tmp/cvs-serv27794
Modified Files:
mpeg3io.c
Log Message:
changed the conditional compilation test around the "sentmntent" stuff from
"not (mac or windows)" to "linux" so it also compiles on Solaris and FreeBSD.
However, I can't see where this function is ever called anyway.
Index: mpeg3io.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/Cross/plugins/Mpeg3Plugin/libmpeg/mpeg3io.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mpeg3io.c 27 Dec 2001 23:15:44 -0000 1.2
--- mpeg3io.c 5 May 2002 01:26:04 -0000 1.3
***************
*** 34,38 ****
#include "mpeg3protos.h"
! #if !(defined(TARGET_OS_MAC) || defined(WIN32))
#include <mntent.h>
#endif
--- 34,38 ----
#include "mpeg3protos.h"
! #if defined(__linux__)
#include <mntent.h>
#endif
***************
*** 123,127 ****
{
struct stat file_st, device_st;
! struct mntent *mnt;
FILE *fp;
--- 123,129 ----
{
struct stat file_st, device_st;
! #if defined(__linux__)
! struct mntent *mnt;
! #endif
FILE *fp;
***************
*** 132,138 ****
}
! #if !(defined(WIN32) || defined(TARGET_OS_MAC))
! fp = setmntent(MOUNTED, "r");
! while(fp && (mnt = getmntent(fp)))
{
if(stat(mnt->mnt_fsname, &device_st) < 0) continue;
--- 134,140 ----
}
! #if defined(__linux__)
! fp = setmntent(MOUNTED, "r");
! while(fp && (mnt = getmntent(fp)))
{
if(stat(mnt->mnt_fsname, &device_st) < 0) continue;
|