From f9f8ade96be51d5edf047083cbd5c5b6e7e965e5 Mon Sep 17 00:00:00 2001 From: ahodgkinson Date: Tue, 11 Jul 2006 19:46:17 +0000 Subject: [PATCH] Fixed Linux compile errors. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@652 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- ftk/src/ftkunix.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ftk/src/ftkunix.cpp b/ftk/src/ftkunix.cpp index f1c2615..8591a30 100644 --- a/ftk/src/ftkunix.cpp +++ b/ftk/src/ftkunix.cpp @@ -712,12 +712,10 @@ RCODE F_FileHdl::lowLevelWrite( m_pucAlignedBuff, uiCurrBytesToExtend, ui64CurrFileSize)) == -1) { - #ifndef FLM_LIBC_NLM - if( errno == EINTER) + if( errno == EINTR) { continue; } - #endif rc = f_mapPlatformError( errno, NE_FLM_WRITING_FILE); goto Exit; @@ -784,12 +782,10 @@ RCODE F_FileHdl::lowLevelWrite( if( (iBytesWritten = pwrite( m_fd, pvBuffer, uiBytesToWrite, ui64WriteOffset)) == -1) { - #ifndef FLM_LIBC_NLM - if( errno == EINTER) + if( errno == EINTR) { continue; } - #endif rc = f_mapPlatformError( errno, NE_FLM_WRITING_FILE); } @@ -851,12 +847,10 @@ RCODE F_FileHdl::lowLevelWrite( if( (iBytesWritten = pwrite( m_fd, pvBuffer, uiBytesToWrite, ui64WriteOffset)) == -1) { - #ifndef FLM_LIBC_NLM - if( errno == EINTER) + if( errno == EINTR) { continue; } - #endif rc = f_mapPlatformError( errno, NE_FLM_WRITING_FILE); }