~ubuntu-branches/debian/jessie/qemu/jessie

« back to all changes in this revision

Viewing changes to oslib-posix.c

  • Committer: Package Import Robot
  • Author(s): Vagrant Cascadian
  • Date: 2011-10-03 12:29:18 UTC
  • mfrom: (1.2.13) (10.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20111003122918-zc4kv6epchrbgdta
Tags: 0.15.0+dfsg-1
* New upstream version.
* Install new qemu-system, qemu-user and qemu-user-static variants: 
  lm32, microblazeel, s390x, unicore32
* Patch from upstream to set QEMU_INCLUDES before QEMU_CFLAGS.
* Update debian/watch to check http://qemu.org/download.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 * THE SOFTWARE.
27
27
 */
28
28
 
 
29
/* The following block of code temporarily renames the daemon() function so the
 
30
   compiler does not see the warning associated with it in stdlib.h on OSX */
 
31
#ifdef __APPLE__
 
32
#define daemon qemu_fake_daemon_function
 
33
#include <stdlib.h>
 
34
#undef daemon
 
35
extern int daemon(int, int);
 
36
#endif
 
37
 
29
38
#include "config-host.h"
30
39
#include "sysemu.h"
31
40
#include "trace.h"
32
41
#include "qemu_socket.h"
33
42
 
 
43
 
 
44
 
 
45
int qemu_daemon(int nochdir, int noclose)
 
46
{
 
47
    return daemon(nochdir, noclose);
 
48
}
 
49
 
34
50
void *qemu_oom_check(void *ptr)
35
51
{
36
52
    if (ptr == NULL) {