#! /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@
--- a/mgetty.h
+++ b/mgetty.h
@@ -218,9 +218,7 @@ typedef unsigned char uch;
  * 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
 
