~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to modules/linux/shared/compat_autoconf.h

  • Committer: Evan Broder
  • Date: 2010-03-21 23:26:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: broder@mit.edu-20100321232653-5a57r7v7ch4o6byv
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********************************************************
 
2
 * Copyright (C) 2009 VMware, Inc. All rights reserved.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License as published by the
 
6
 * Free Software Foundation version 2 and no later version.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
10
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
11
 * for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
15
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
16
 *
 
17
 *********************************************************/
 
18
 
 
19
#ifndef __COMPAT_AUTOCONF_H__
 
20
#   define __COMPAT_AUTOCONF_H__
 
21
 
 
22
#define INCLUDE_ALLOW_VMMON
 
23
#define INCLUDE_ALLOW_MODULE
 
24
#define INCLUDE_ALLOW_VMCORE
 
25
#define INCLUDE_ALLOW_DISTRIBUTE
 
26
#include "includeCheck.h"
 
27
 
 
28
 
 
29
#ifndef LINUX_VERSION_CODE
 
30
#   error "Include compat_version.h before compat_autoconf.h"
 
31
#endif
 
32
 
 
33
/* autoconf.h moved from linux/autoconf.h to generated/autoconf.h in 2.6.33-rc1. */
 
34
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
 
35
#   include <linux/autoconf.h>
 
36
#else
 
37
#   include <generated/autoconf.h>
 
38
#endif
 
39
 
 
40
#endif /* __COMPAT_AUTOCONF_H__ */