Index: libmad/layer3.c
===================================================================
RCS file: /cvs/ports/mad/libmad/layer3.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** libmad/layer3.c	3 Feb 2004 22:32:15 -0000	1.1
--- libmad/layer3.c	3 Feb 2004 22:38:29 -0000	1.2
***************
*** 16,22 ****
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   *
!  * $Id: patch_mad_0.14.2b.txt,v 1.3 2006/03/22 10:05:03 amueller_itec Exp $
   */
  
  # ifdef HAVE_CONFIG_H
--- 16,22 ----
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   *
!  * $Id: patch_mad_0.14.2b.txt,v 1.3 2006/03/22 10:05:03 amueller_itec Exp $
   */
  
  # ifdef HAVE_CONFIG_H
***************
*** 45,50 ****
--- 45,62 ----
  # include "huffman.h"
  # include "layer3.h"
  
+ #if defined(_WIN32_WCE) && _WIN32_WCE < 300
+ 
+ void *calloc(size_t n, size_t s) {
+ 	void *result = malloc(n * s);
+ 	if (result) 
+ 		memset(result, 0, n * s);
+ 
+ 	return result;
+ }
+ 
+ #endif
+ 
  /* --- Layer III ----------------------------------------------------------- */
  
  enum {
Index: msvc++/libmad/config.h
===================================================================
RCS file: /cvs/ports/mad/msvc++/libmad/config.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -r1.1 -r1.2
*** msvc++/libmad/config.h	3 Feb 2004 22:32:15 -0000	1.1
--- msvc++/libmad/config.h	3 Feb 2004 22:38:29 -0000	1.2
***************
*** 16,22 ****
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   *
!  * $Id: patch_mad_0.14.2b.txt,v 1.3 2006/03/22 10:05:03 amueller_itec Exp $
   */
  
  # ifndef LIBMAD_CONFIG_H
--- 16,22 ----
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   *
!  * $Id: patch_mad_0.14.2b.txt,v 1.3 2006/03/22 10:05:03 amueller_itec Exp $
   */
  
  # ifndef LIBMAD_CONFIG_H
***************
*** 90,95 ****
--- 90,97 ----
  /* Define if you have the waitpid function.  */
  /* #undef HAVE_WAITPID */
  
+ #ifndef _WIN32_WCE
+ 
  /* Define if you have the <assert.h> header file.  */
  #define HAVE_ASSERT_H 1
  
***************
*** 105,110 ****
--- 107,114 ----
  /* Define if you have the <sys/types.h> header file.  */
  #define HAVE_SYS_TYPES_H 1
  
+ #endif
+ 
  /* Define if you have the <unistd.h> header file.  */
  /* #undef HAVE_UNISTD_H */
  
