[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem compiling es under linux



when compiling es with -D_POSIX_SOURCE under linux 0.99.9, the
compilation failed because of calls to setpgrp().  The POSIX.1
function is void setpgrp(void) --- the POSIX.1 "equivalent" of what
es was doing is setpgid().

(sorry, don't remember the source file, and don't have the source
handy here)

The change I made was adding an #ifdef _POSIX_SOURCE around each
call.   Maybe something cleaner would be using a macro like
SETPGRP that gets it's defined as either setpgid or setpgrp
depending upon the defition of _POSIX_SOURCE?

--- 
Maurice S. Barnum  --- msb@cats.{ucsc.edu,BITNET}, mbarnum@eis.calstate.edu
    There is no more light in a genius than in any other honest man---but he
    has a ... lens to concentrate this light into a burning point. 
	--- L. Wittgenstein
---