minor changes for solaris compatibility

pull/8/merge
Kevin Lin 11 years ago
parent a6d2b523d0
commit ac5da57a5c
  1. 2
      clamdscan/proto.c
  2. 2
      libclamav/ole2_extract.c

@ -23,8 +23,10 @@
#endif
#if defined(C_SOLARIS)
#ifndef __EXTENSIONS__
#define __EXTENSIONS__
#endif
#endif
/* must be first because it may define _XOPEN_SOURCE */
#include "shared/fdpassing.h"

@ -403,7 +403,7 @@ ole2_read_block(ole2_header_t * hdr, void *buff, unsigned int size, int32_t bloc
return FALSE;
} else if (offend > hdr->m_length) {
/* bb#11369 - ole2 files may not be a block multiple in size */
bzero(buff, size);
memset(buff, 0, size);
size = hdr->m_length - offset;
}
if (!(pblock = fmap_need_off_once(hdr->map, offset, size))) {

Loading…
Cancel
Save