Mercurial > emacs
comparison src/getloadavg.c @ 96772:ade33f1b986e
revert changes to getloadavg.c
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Thu, 17 Jul 2008 18:33:05 +0000 |
parents | d45acf0c8d23 |
children | 853e0fcfb3f7 |
comparison
equal
deleted
inserted
replaced
96771:d92ec7333164 | 96772:ade33f1b986e |
---|---|
418 but not exactly. */ | 418 but not exactly. */ |
419 # define NeXT | 419 # define NeXT |
420 # define host_self mach_host_self | 420 # define host_self mach_host_self |
421 # endif | 421 # endif |
422 | 422 |
423 # if defined(NeXT) || defined(RHAPSODY) || defined(DARWIN) || defined(MAC_OSX) | 423 # ifdef NeXT |
424 # ifdef HAVE_MACH_MACH_H | 424 # ifdef HAVE_MACH_MACH_H |
425 # include <mach/mach.h> | 425 # include <mach/mach.h> |
426 # else | 426 # else |
427 # include <mach.h> | 427 # include <mach.h> |
428 # endif | 428 # endif |
465 # include <sys/file.h> | 465 # include <sys/file.h> |
466 # endif | 466 # endif |
467 | 467 |
468 /* Avoid static vars inside a function since in HPUX they dump as pure. */ | 468 /* Avoid static vars inside a function since in HPUX they dump as pure. */ |
469 | 469 |
470 # if defined(NeXT) || defined(RHAPSODY) || defined(DARWIN) || defined(MAC_OSX) | 470 # ifdef NeXT |
471 static processor_set_t default_set; | 471 static processor_set_t default_set; |
472 static int getloadavg_initialized; | 472 static int getloadavg_initialized; |
473 # endif /* NeXT */ | 473 # endif /* NeXT */ |
474 | 474 |
475 # ifdef UMAX | 475 # ifdef UMAX |
645 | 645 |
646 return elem; | 646 return elem; |
647 | 647 |
648 # endif /* __NetBSD__ */ | 648 # endif /* __NetBSD__ */ |
649 | 649 |
650 # if !defined (LDAV_DONE) && ( defined (NeXT) || defined(RHAPSODY) \ | 650 # if !defined (LDAV_DONE) && defined (NeXT) |
651 || defined(DARWIN) || defined(MAC_OSX) ) | |
652 # define LDAV_DONE | 651 # define LDAV_DONE |
653 /* The NeXT code was adapted from iscreen 3.2. */ | 652 /* The NeXT code was adapted from iscreen 3.2. */ |
654 | 653 |
655 host_t host; | 654 host_t host; |
656 struct processor_set_basic_info info; | 655 struct processor_set_basic_info info; |