-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed poll.h *readerCount++ error reported by TankorSmash
- Loading branch information
Showing
4 changed files
with
31 additions
and
23 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,24 @@ | ||
// unistd/more/shm_more.h | ||
// 2018/10/28 Robin.Rowe@CinePaint.org | ||
|
||
#ifndef shm_more_h | ||
#define shm_more_h | ||
|
||
#ifndef _WIN32 | ||
|
||
#include <sys/stat.h> | ||
#include <fcntl.h> | ||
|
||
#define shm_close close | ||
#define shm_ftruncate ftruncate | ||
#define shm_flush(fd) | ||
|
||
int shm_size(int fd) | ||
{ struct stat sb; | ||
fstat(fd, &sb); | ||
off_t length = sb.st_size; | ||
return int(length); | ||
} | ||
#endif | ||
|
||
#endif |
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