diff --git a/include/mscp.h b/include/mscp.h index 6444463..236f526 100644 --- a/include/mscp.h +++ b/include/mscp.h @@ -28,6 +28,7 @@ #include #include +#include #define MSCP_DIRECTION_L2R 1 /** Indicates local to remote copy */ #define MSCP_DIRECTION_R2L 2 /** Indicates remote to local copy */ diff --git a/src/bwlimit.h b/src/bwlimit.h index 58cdd8d..650ed74 100644 --- a/src/bwlimit.h +++ b/src/bwlimit.h @@ -9,10 +9,10 @@ #include struct bwlimit { - sem_t *sem; /* semaphore */ - uint64_t bps; /* limit bit-rate (bps) */ - uint64_t win; /* window size (msec) */ - size_t amt; /* amount of bytes can be sent in a window */ + sem_t *sem; /* semaphore */ + size_t bps; /* limit bit-rate (bps) */ + size_t win; /* window size (msec) */ + size_t amt; /* amount of bytes can be sent in a window */ ssize_t credit; /* remaining bytes can be sent in a window */ struct timespec wstart, wend; /* window start time and end time */