Skip to content

Commit

Permalink
Defines needed for btree-test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewc12 committed Aug 18, 2022
1 parent fe81535 commit 7bf3dc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/os/windows/spl/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ typedef uintptr_t pc_t;
#define strtok_r strtok_s
#define strcasecmp _stricmp

#define srandom(x) srand(x)
#define random() rand()

struct mount;
typedef struct mount mount_t;

Expand Down
4 changes: 4 additions & 0 deletions lib/libspl/include/os/windows/sys/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ int posix_memalign(void **memptr, size_t alignment, size_t size);
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
#define howmany(x, y) ((((x) % (y)) == 0) ? ((x) / (y)) : (((x) / (y)) + 1))

#define RLIMIT_CORE 4 /* core file size */
#define RLIMIT_NOFILE 8 /* number of open files */
typedef uint64_t rlim_t;
struct rlimit {
Expand All @@ -205,6 +206,9 @@ struct rlimit {

#define strcasecmp _stricmp

#define srandom(x) srand(x)
#define random() rand()

int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);

#include <sys/isa_defs.h>
Expand Down

0 comments on commit 7bf3dc4

Please sign in to comment.