-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

package libhdf4
tags 251275 +patch
thanks mate

libhdf4 (4.1r4-18.1) unstable; urgency=medium

  * Non-maintainer upload.
  * Patch source so it builds on amd64, thanks Kurt Roeckx. Closes: #251275

 -- Luk Claes <[EMAIL PROTECTED]>  Thu,  5 May 2005 16:07:36 +0200

Patch attached.

Cheers

Luk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCejO45UTeB5t8Mo0RAr+kAJ9P2ERiDb4Xw7ClBhMgvXlVm+5qXQCfclTJ
9ucSqw4aYCfdDi+mUEpGCn4=
=XghP
-----END PGP SIGNATURE-----
diff -Nru libhdf4/libhdf4-4.1r4/debian/changelog libhdf4-4.1r4/debian/changelog
--- libhdf4/libhdf4-4.1r4/debian/changelog      2005-05-05 16:21:44.943760120 
+0200
+++ libhdf4-4.1r4/debian/changelog      2005-05-05 16:10:15.000000000 +0200
@@ -1,3 +1,10 @@
+libhdf4 (4.1r4-18.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Patch source so it builds on amd64, thanks Kurt Roeckx. Closes: #251275
+
+ -- Luk Claes <[EMAIL PROTECTED]>  Thu,  5 May 2005 16:07:36 +0200
+
 libhdf4 (4.1r4-18) unstable; urgency=low
 
   * New Maintainer
diff -Nru libhdf4/libhdf4-4.1r4/hdf/src/hdfi.h libhdf4-4.1r4/hdf/src/hdfi.h
--- libhdf4/libhdf4-4.1r4/hdf/src/hdfi.h        2005-05-05 16:21:44.701796904 
+0200
+++ libhdf4-4.1r4/hdf/src/hdfi.h        2005-05-05 16:07:26.000000000 +0200
@@ -73,6 +73,7 @@
 #define     DFMT_CRAYMPP        0x1171
 #define     DFMT_IA64           0x4441
 #define     DFMT_ARMV4L         0x4441
+#define     DFMT_X86_64         0x4441
 
 /* I/O library constants */
 #define UNIXUNBUFIO 1
@@ -1599,6 +1600,60 @@
 
 #endif /* IA64 */
 
+
+/* AMD64 running Linux */
+#if defined(__x86_64__)
+
+#ifdef GOT_MACHINE
+If you get an error on this line more than one machine type has been defined.
+Please check your Makefile.
+#endif
+#define GOT_MACHINE
+
+#include <sys/file.h>               /* for unbuffered i/o stuff */
+#include <sys/stat.h>
+#define DF_MT             DFMT_X86_64
+typedef void              VOID;
+typedef void              *VOIDP;
+typedef char              *_fcd;
+typedef char              char8;
+typedef unsigned char     uchar8;
+typedef char              int8;
+typedef unsigned char     uint8;
+typedef short int         int16;
+typedef unsigned short int uint16;
+typedef int               int32;
+typedef unsigned int      uint32;
+typedef int               intn;
+typedef unsigned int      uintn;
+typedef int               intf;     /* size of INTEGERs in Fortran compiler */
+typedef float             float32;
+typedef double            float64;
+typedef long              hdf_pint_t;   /* an integer the same size as a 
pointer */
+#define FNAME_POST_UNDERSCORE
+#define _fcdtocp(desc) (desc)
+#ifdef  HAVE_FMPOOL
+#define FILELIB PAGEBUFIO  /* enable page buffering */
+#else
+#define FILELIB UNIXBUFIO
+#endif
+
+#define BIG_LONGS
+
+/* JPEG #define's - Look in the JPEG docs before changing - (Q) */
+
+/* Determine the memory manager we are going to use. Valid values are: */
+/*  MEM_DOS, MEM_ANSI, MEM_NAME, MEM_NOBS.  See the JPEG docs for details on */
+/*  what each does */
+#define JMEMSYS         MEM_ANSI
+
+#ifdef __GNUC__
+#define HAVE_STDC
+#define INCLUDES_ARE_ANSI
+#endif
+
+#endif /* X86_64 */
+
 #ifndef GOT_MACHINE
 No machine type has been defined.  Your Makefile needs to have someing like
 -DSUN or -DUNICOS in order for the HDF internal structures to be defined

Reply via email to