Re: [ddd-bugs] Re: ddd 3.0
Hi!
J.H.M. Dassen (Ray) writes:
> I've tried building DDD on powerpc.debian.org, and ran into a conflict over
> ioctl. I've patched it thusly:
>
> --- ddd-3.0/ddd/TTYAgent.C Tue May 12 09:50:28 1998
> +++ ../ddd-3.0/ddd/TTYAgent.C Thu Oct 15 12:34:42 1998
> @@ -161,7 +161,11 @@
> int tcsetpgrp(int fd, pid_t pgid);
> #endif
> #if HAVE_IOCTL && !HAVE_IOCTL_DECL && !defined(ioctl)
> +# if defined(linux) && defined(powerpc)
> + int ioctl(int fd, unsigned long int request, ...);
> +# else
> int ioctl(int fd, int request, ...);
> +# endif
> #endif
> #if HAVE_FCNTL && !HAVE_FCNTL_DECL && !defined(fcntl)
> int fcntl(int fd, int command, ...);
The DDD `configure' script now also checks for an ioctl() declaration
in <sys/ioctl.h>. HAVE_IOCTL_DECL should now always be defined on
Linux. This patch will no longer be required in the next DDD version.
--
Andreas Zeller Technische Universitaet Braunschweig, Germany
mailto:zeller@acm.org http://www.cs.tu-bs.de/~zeller/
Reply to:
- References:
- Re: ddd 3.0
- From: "J.H.M. Dassen \(Ray\)" <jdassen@wi.leidenuniv.nl>