#! /bin/sh /usr/share/dpatch/dpatch-run
## by James Cowgill <jcowgill@debian.org>
## see #775518
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: replace list of 64bit arches by __LP64__

@DPATCH@
diff -ur a/mgetty.h b/mgetty.h
--- a/mgetty.h	2015-01-16 14:02:00.000000000 +0000
+++ b/mgetty.h	2015-01-16 14:32:25.879672396 +0000
@@ -196,9 +196,7 @@
  * union to use "void *" and "long", instead of "int" (see config.h).
  * Same for Sparc Ultra machines [at least with SparcLinux]
  */
-#if defined(__alpha__) || defined(__sparc64__) || \
-	    defined(__ia64__) || defined(__s390x__) || defined(__x86_64__) || \
-	    defined(__powerpc64__)
+#ifdef __LP64__
 # define PTR_IS_LONG
 #endif
 
