forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add common definitions for Windows builds.
Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
Showing
7 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2013 Nicira, Inc. | ||
# | ||
# Copying and distribution of this file, with or without modification | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without warranty of any kind. | ||
|
||
noinst_HEADERS += \ | ||
include/windows/windefs.h \ | ||
include/windows/syslog.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2013 Cloudbase Solutions Srl | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License.You may obtain | ||
* a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#ifndef SYSLOG_H | ||
#define SYSLOG_H 1 | ||
|
||
#define LOG_EMERG 0 /* system is unusable */ | ||
#define LOG_ALERT 1 /* action must be taken immediately */ | ||
#define LOG_CRIT 2 /* critical conditions */ | ||
#define LOG_ERR 3 /* error conditions */ | ||
#define LOG_WARNING 4 /* warning conditions */ | ||
#define LOG_NOTICE 5 /* normal but significant condition */ | ||
#define LOG_INFO 6 /* informational */ | ||
#define LOG_DEBUG 7 /* debug-level messages */ | ||
#define LOG_NDELAY 8 /* don't delay open */ | ||
#define LOG_DAEMON 24 /* system daemons */ | ||
|
||
#endif /* syslog.h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2013 Nicira, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef WINDEFS_H | ||
#define WINDEFS_H 1 | ||
|
||
#include <Winsock2.h> | ||
#include <In6addr.h> | ||
#include <WS2tcpip.h> | ||
#include <windows.h> | ||
#include <BaseTsd.h> | ||
|
||
#define inline __inline | ||
#define __func__ __FUNCTION__ | ||
#define ssize_t SSIZE_T | ||
#define u_int8_t uint8_t | ||
#define u_int16_t uint16_t | ||
#define u_int32_t uint32_t | ||
#define u_int64_t uint64_t | ||
|
||
#endif /* windefs.h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters