X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Wed, 02 Jan 2002 18:18:59 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <3405-Wed02Jan2002181859+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from HARY on Wed, 2 Jan 2002 14:29:27 +0000 (UTC)) Subject: Re: Unresolved externals. References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: HARY > Newsgroups: comp.os.msdos.djgpp > Date: Wed, 2 Jan 2002 14:29:27 +0000 (UTC) > > Now I can link this program with: 'Dlstat=stat -Dsetegid=setgid > --Dseteuid=setuid' options. > > But I've never before tried to port UNIX program to DOS. Is it > preferred method or should I do it in another way? The preferred method is to make the program itself automatically portable. For example, the `lstat' vs `stat' issue is fixed like this: #include #ifndef S_ISLNK # define lstat(f,s) stat(f,s) #endif