~peter-pearse/ubuntu/oneiric/talloc/prop001

« back to all changes in this revision

Viewing changes to libreplace/replace.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2009-06-17 17:07:03 UTC
  • mfrom: (1.1.6 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090617170703-g9bdih8q4d77ukio
Tags: 1.3.1-1
* New upstream release.
 + Fixes build on non-Linux GNU systems. (Closes: #526069)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "system/locale.h"
32
32
#include "system/wait.h"
33
33
 
 
34
#ifdef _WIN32
 
35
#define mkdir(d,m) _mkdir(d)
 
36
#endif
 
37
 
34
38
void replace_dummy(void);
35
39
void replace_dummy(void) {}
36
40
 
355
359
}
356
360
#endif
357
361
 
358
 
#ifndef HAVE_WAITPID
 
362
#if !defined(HAVE_WAITPID) && defined(HAVE_WAIT4)
359
363
int rep_waitpid(pid_t pid,int *status,int options)
360
364
{
361
365
  return wait4(pid, status, options, NULL);
368
372
#ifdef HAVE_SETRESUID
369
373
        return setresuid(-1, euid, -1);
370
374
#else
371
 
#  error "You need a seteuid function"
 
375
        errno = ENOSYS;
 
376
        return -1;
372
377
#endif
373
378
}
374
379
#endif
379
384
#ifdef HAVE_SETRESGID
380
385
        return setresgid(-1, egid, -1);
381
386
#else
382
 
#  error "You need a setegid function"
 
387
        errno = ENOSYS;
 
388
        return -1;
383
389
#endif
384
390
}
385
391
#endif