-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add byte order detection and THREAD_YIELD support for Solaris
- Loading branch information
1 parent
17bf6a2
commit 2cd6837
Showing
4 changed files
with
35 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Nathan French <[email protected]> | |
Redjack, LLC | ||
Roger Shimizu <[email protected]> | ||
Toby DiPasquale <[email protected]> | ||
Rivoreo Group |
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,29 @@ | ||
/* -*- coding: utf-8 -*- | ||
* ---------------------------------------------------------------------- | ||
* Copyright © 2019, libcork authors | ||
* All rights reserved. | ||
* | ||
* Please see the COPYING file in this distribution for license details. | ||
* ---------------------------------------------------------------------- | ||
*/ | ||
|
||
#ifndef LIBCORK_CONFIG_SOLARIS_H | ||
#define LIBCORK_CONFIG_SOLARIS_H | ||
|
||
/*----------------------------------------------------------------------- | ||
* Endianness | ||
*/ | ||
|
||
#include <sys/byteorder.h> | ||
|
||
#ifdef _BIG_ENDIAN | ||
#define CORK_CONFIG_IS_BIG_ENDIAN 1 | ||
#define CORK_CONFIG_IS_LITTLE_ENDIAN 0 | ||
#else | ||
#define CORK_CONFIG_IS_BIG_ENDIAN 0 | ||
#define CORK_CONFIG_IS_LITTLE_ENDIAN 1 | ||
#endif | ||
|
||
#define CORK_HAVE_PTHREADS 1 | ||
|
||
#endif /* LIBCORK_CONFIG_SOLARIS_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