`flags` is no longer used, please also remove a few lines up:
```
 #ifndef _WIN32
    int flags;
  #endif
```