)]}'
{
  "commit": "0028c5c24f84750b5a53131c69e5f69fb51d8a7c",
  "tree": "cee57b43455b077f70511b09dfdcbe18825e676b",
  "parents": [
    "7e3f2dd90ce4ecfad3c3e54c147317fadd980234"
  ],
  "author": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Fri May 16 14:50:32 2025 +0800"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Fri May 16 16:40:23 2025 +0800"
  },
  "message": "winpthreads: Ensure `struct _timespec{32,64}` are defined before use\n\nWe have declarations such as\n\n   WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct _timespec64 *t);\n\nWhen `struct _timespec64` is not forward-declared, this function declaration\ndeclares a new struct whose scope is limited to that function. In this case it\nis not the same type as the one in file scope, which causes errors like\n\n   C:/MSYS64/mingw64/include/semaphore.h: In function \u0027sem_timedwait\u0027:\n   C:/MSYS64/mingw64/include/semaphore.h:53:32: error: passing argument 2 of \u0027sem_timedwait64\u0027 from incompatible pointer type [-Wincompatible-pointer-types]\n      53 |   return sem_timedwait64 (sem, (const struct _timespec64 *) t);\n         |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n         |                                |\n         |                                const struct _timespec64 *\n   C:/MSYS64/mingw64/include/semaphore.h:47:75: note: expected \u0027const struct _timespec64 *\u0027 but argument is of type \u0027const struct _timespec64 *\u0027\n      47 | WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct _timespec64 *t);\n         |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^\n\nWe include \u003csys/timeb.h\u003e so those function declarations reference the global\ntypes and do not declare their own.\n\nReported-by: Jeremy Lainé \u003cjeremy.laine@m4x.org\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ac014aefc073ecd697b594f321318d14cb807dc4",
      "old_mode": 33188,
      "old_path": "mingw-w64-libraries/winpthreads/include/pthread_time.h",
      "new_id": "27f7566f0f59836b1228e335ebbf3a2da417b4cf",
      "new_mode": 33188,
      "new_path": "mingw-w64-libraries/winpthreads/include/pthread_time.h"
    },
    {
      "type": "modify",
      "old_id": "649583ffc0a45c4f93d5bedbd566c393ec481c66",
      "old_mode": 33188,
      "old_path": "mingw-w64-libraries/winpthreads/include/semaphore.h",
      "new_id": "9a6c211a93ae1522755d739aefa0ded6f96f48dd",
      "new_mode": 33188,
      "new_path": "mingw-w64-libraries/winpthreads/include/semaphore.h"
    }
  ]
}
