/[emacs]/emacs/src/systty.h
ViewVC logotype

Diff of /emacs/src/systty.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47 by schwab, Mon Jan 4 12:10:38 1999 UTC revision 1.47.20.1 by miles, Fri Apr 4 06:21:03 2003 UTC
# Line 22  Boston, MA 02111-1307, USA.  */ Line 22  Boston, MA 02111-1307, USA.  */
22  #define HAVE_TCATTR  #define HAVE_TCATTR
23  #endif  #endif
24    
 /* If we defined these before and we are about to redefine them,  
    prevent alarming warnings.  */  
 #ifdef BSD_TERMIOS  
 #undef NL0  
 #undef NL1  
 #undef CR0  
 #undef CR1  
 #undef CR2  
 #undef CR3  
 #undef TAB0  
 #undef TAB1  
 #undef TAB2  
 #undef XTABS  
 #undef BS0  
 #undef BS1  
 #undef FF0  
 #undef FF1  
 #undef ECHO  
 #undef NOFLSH  
 #undef TOSTOP  
 #undef FLUSHO  
 #undef PENDIN  
 #endif  
25    
26  /* Include the proper files.  */  /* Include the proper files.  */
27  #ifdef HAVE_TERMIO  #ifdef HAVE_TERMIO
# Line 135  static struct sensemode { Line 112  static struct sensemode {
112    
113  #ifdef NEED_BSDTTY  #ifdef NEED_BSDTTY
114  #include <sys/bsdtty.h>  #include <sys/bsdtty.h>
115  #endif  #endif
116    
117  #if defined (HPUX) && defined (HAVE_PTYS)  #if defined (HPUX) && defined (HAVE_PTYS)
118  #include <sys/ptyio.h>  #include <sys/ptyio.h>
# Line 294  static struct sensemode { Line 271  static struct sensemode {
271    
272  /* EMACS_GETPGRP (arg) returns the process group of the process.  */  /* EMACS_GETPGRP (arg) returns the process group of the process.  */
273    
274  #ifdef __GNU_LIBRARY__  #if defined (GETPGRP_VOID)
 /* GNU libc by default defines getpgrp with no args on all systems.  */  
 #if __GLIBC__  >= 2  
 /* glibc-2.1 adds the BSD compatibility getpgrp function  
    if you use _BSD_SOURCE, which Emacs does on GNU/Linux systems.  */  
 #if __GLIBC_MINOR__ < 1 || ! defined (__FAVOR_BSD)  
 #define GETPGRP_NO_ARG  
 #endif  
 #else /* __GLIBC__ < 2 */  
 #define GETPGRP_NO_ARG  
 #endif /* __GLIBC__ < 2 */  
 #else /* not __GNU_LIBRARY__ */  
 #if defined (USG) && !defined (GETPGRP_NEEDS_ARG)  
 #  if !defined (GETPGRP_NO_ARG)  
 #    define GETPGRP_NO_ARG  
 #  endif  
 #endif  
 #endif /* not __GNU_LIBRARY__ */  
   
 #if defined (GETPGRP_NO_ARG)  
275  #  define EMACS_GETPGRP(x) getpgrp()  #  define EMACS_GETPGRP(x) getpgrp()
276  #else  #else
277  #  define EMACS_GETPGRP(x) getpgrp(x)  #  define EMACS_GETPGRP(x) getpgrp(x)
278  #endif /* !GETPGRP_NO_ARG */  #endif /* !GETPGRP_VOID */
279    
280  /* Manipulate a TTY's input/output processing parameters.  */  /* Manipulate a TTY's input/output processing parameters.  */
281    

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.47.20.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26