Mercurial > hg > xemacs-beta
comparison src/systty.h @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 376386a54a3c |
children | 85ec50267440 |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
348 POSIX also calls for this, and thus some newer BSD systems | 348 POSIX also calls for this, and thus some newer BSD systems |
349 have this change. Older BSD systems have an argument. | 349 have this change. Older BSD systems have an argument. |
350 It would be nice to autodetect this, but there's unfortunately | 350 It would be nice to autodetect this, but there's unfortunately |
351 no general way. */ | 351 no general way. */ |
352 | 352 |
353 /* The above comment is crap, because AC_FUNC_GETPGRP provides just | |
354 such a way - mrb. */ | |
355 | |
356 #if 0 /* mrb */ | |
353 /* XEmacs backwards-compatibility */ | 357 /* XEmacs backwards-compatibility */ |
354 #ifdef GETPGRP_NEEDS_ARG | 358 #ifdef GETPGRP_NEEDS_ARG |
355 # undef GETPGRP_NO_ARG | 359 # undef GETPGRP_NO_ARG |
356 #else | 360 #else |
357 # ifdef GETPGRP_NO_ARG | 361 # ifdef GETPGRP_NO_ARG |
362 #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) | 366 #if defined (USG) && !defined (GETPGRP_NEEDS_ARG) |
363 # if !defined (GETPGRP_NO_ARG) | 367 # if !defined (GETPGRP_NO_ARG) |
364 # define GETPGRP_NO_ARG | 368 # define GETPGRP_NO_ARG |
365 # endif | 369 # endif |
366 #endif | 370 #endif |
367 | 371 #endif /* 0 */ |
368 #if defined (GETPGRP_NO_ARG) | 372 |
369 # define EMACS_GETPGRP(x) getpgrp() | 373 #ifdef GETPGRP_VOID |
370 #else | 374 #define EMACS_GETPGRP(x) getpgrp() |
371 # define EMACS_GETPGRP(x) getpgrp(x) | 375 #else |
372 #endif /* !GETPGRP_NO_ARG */ | 376 #define EMACS_GETPGRP(x) getpgrp(x) |
377 #endif /* GETPGRP_VOID */ | |
373 | 378 |
374 /* XEmacs backward-compatibility. Is 0 always a reasonable argument? */ | 379 /* XEmacs backward-compatibility. Is 0 always a reasonable argument? */ |
375 #define EMACS_GET_PROCESS_GROUP() EMACS_GETPGRP (0) | 380 #define EMACS_GET_PROCESS_GROUP() EMACS_GETPGRP (0) |
376 | 381 |
377 /* Xemacs addition? */ | 382 /* Xemacs addition? */ |