diff options
| author | Milan P. Stanić <mps@arvanta.net> | 2019-12-01 22:30:10 +0100 |
|---|---|---|
| committer | Milan P. Stanić <mps@arvanta.net> | 2019-12-24 21:16:58 +0100 |
| commit | 88bd94eb29a435dab5e9361857790afa36edf600 (patch) | |
| tree | e574630b84f6a3dcd829c518ebe30859c1e5a81d /testing/wiringx/fix_time_t.patch | |
| parent | f52f3d684c2df7b026ee7aaba5dd26fe9f815f31 (diff) | |
| download | aports-88bd94eb29a435dab5e9361857790afa36edf600.tar.bz2 aports-88bd94eb29a435dab5e9361857790afa36edf600.tar.xz | |
testing/wiringx: new aport
https://github.com/wiringX/wiringX
modular approach to several GPIO interfaces
Diffstat (limited to 'testing/wiringx/fix_time_t.patch')
| -rw-r--r-- | testing/wiringx/fix_time_t.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/wiringx/fix_time_t.patch b/testing/wiringx/fix_time_t.patch new file mode 100644 index 0000000000..bb79626367 --- /dev/null +++ b/testing/wiringx/fix_time_t.patch @@ -0,0 +1,31 @@ +--- a/src/wiringx.c 2019-11-26 22:02:22.000000000 +0000 ++++ b/src/wiringx.c 2019-12-02 15:33:57.453242143 +0000 +@@ -117,8 +117,8 @@ + tLong.tv_sec = howLong / 1000000; + tLong.tv_usec = howLong % 1000000; + #else +- tLong.tv_sec = (__time_t)howLong / 1000000; +- tLong.tv_usec = (__suseconds_t)howLong % 1000000; ++ tLong.tv_sec = (time_t)howLong / 1000000; ++ tLong.tv_usec = (suseconds_t)howLong % 1000000; + #endif + timeradd(&tNow, &tLong, &tEnd); + +@@ -133,7 +133,7 @@ + long int uSecs = howLong % 1000000; + unsigned int wSecs = howLong / 1000000; + #else +- long int uSecs = (__time_t)howLong % 1000000; ++ long int uSecs = (time_t)howLong % 1000000; + unsigned int wSecs = howLong / 1000000; + #endif + +@@ -145,7 +145,7 @@ + #ifdef _WIN32 + sleeper.tv_sec = wSecs; + #else +- sleeper.tv_sec = (__time_t)wSecs; ++ sleeper.tv_sec = (time_t)wSecs; + #endif + sleeper.tv_nsec = (long)(uSecs * 1000L); + nanosleep(&sleeper, NULL); |
