~henrix/ubuntu/precise/open-vm-dkms/lp-1416003

« back to all changes in this revision

Viewing changes to modules/linux/vmmemctl/vm_basic_defs.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-10-23 15:32:00 UTC
  • mfrom: (1.1.2 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20081023153200-gc1bfx89hj35c799
Tags: 2008.10.10-123053-2
* Correcting typo in dh_installinit call.
* Downgrading depends on module-assistant to recommends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include "includeCheck.h"
40
40
#include "vm_basic_types.h" // For INLINE.
41
41
 
 
42
/* Checks for FreeBSD, filtering out VMKERNEL. */
 
43
#define __IS_FREEBSD__ (!defined(VMKERNEL) && defined(__FreeBSD__))
 
44
#define __IS_FREEBSD_VER__(ver) (__IS_FREEBSD__ && __FreeBSD_version >= (ver))
 
45
 
42
46
#if defined _WIN32 && defined USERLEVEL
43
47
   #include <stddef.h>  /*
44
48
                         * We re-define offsetof macro from stddef, make 
52
56
 * Simple macros
53
57
 */
54
58
 
55
 
#if defined __APPLE__ && !defined KERNEL
 
59
#if (defined __APPLE__ || defined __FreeBSD__) && \
 
60
    (!defined KERNEL && !defined _KERNEL && !defined VMKERNEL && !defined __KERNEL__)
56
61
#   include <stddef.h>
57
62
#else
58
63
// XXX the __cplusplus one matches that of VC++, to prevent redefinition warning
340
345
 * guarantee.  Bummer.  --Jeremy.
341
346
 */
342
347
 
343
 
#if defined(N_PLAT_NLM) || defined(__FreeBSD__)
 
348
#if defined(N_PLAT_NLM)
344
349
/* We do not have YIELD() as we do not need it yet... */
345
350
#elif defined(_WIN32)
346
351
#      define YIELD()           Sleep(0)