Redirect some headers noticed by the compiler #64

已合併
SlavekB 4 年之前 將 1 次代碼提交從 feat/header-redirections 合併至 master
協同者
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
/usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp]
    1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h>

Note: <sys/signal.h> has been removed from the tdeio/tdeio/connection.cpp source - it was already declared.
``` /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h> Note: <sys/signal.h> has been removed from the tdeio/tdeio/connection.cpp source - it was already declared. ```
所有者

Here's an interesting situation with sys/poll.h × poll.h:

  • On Linux (glibc) poll.h contains #include <sys/poll.h>, so the real file is really in `sys/poll.h
  • On FreeBSD poll.h is symlink to sys/poll.h, so the real file is really in sys/poll.h.

The mentioned incorrect seems to be on many systems as a real true file location. That's why I'm a little hesitant about what's right.

In any case, the test on Debian and FreeBSD is without problems.

Here's an interesting situation with `sys/poll.h` × `poll.h`: * On Linux (glibc) `poll.h` contains `#include <sys/poll.h>`, so the real file is really in `sys/poll.h * On FreeBSD `poll.h` is symlink to `sys/poll.h`, so the real file is really in `sys/poll.h`. The mentioned *incorrect* seems to be on many systems as a real true file location. That's why I'm a little hesitant about what's right. In any case, the test on Debian and FreeBSD is without problems.
發佈者
協同者
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html#tag_13_34
所有者

Please can you rebase to the current HEAD so that your GPG signature can be preserved when merged?

Please can you rebase to the current HEAD so that your GPG signature can be preserved when merged?
發佈者
協同者

Done. 👍

Done. :+1:
SlavekB closed this pull request 4 年之前
SlavekB 刪除分支 feat/header-redirections 4 年之前
SlavekB 新增至R14.0.8 release 里程碑 4 年之前
The pull request has been merged as c2adce2e13.
登入 才能加入這對話。
No reviewers
未選擇里程碑
No Assignees
2 參與者
訊息
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdelibs#64
Loading…
尚未有任何內容