sys/endian.h: No such file or directory

Đang mở
#522 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
c
Lĩnh vực
operating-systems

Hướng nghiên cứu

Search the C sources for sys/endian.h (for example with grep -rn sys/endian.h) to find every include site, then check how the configure script handles endianness headers. The proposed change is to include the POSIX endian.h where the platform provides it. Done means the include resolves on a non-Linux target and the existing build still compiles on Linux, which you can check by running configure and make in the default setup.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

It seems that GNU/Hurd does not have sys/endian.h, this could probably be fixed by instead using endian.h provided by POSIX. The Hurd porting guidelines seem to agree with this. I will make a pull request to go along with this.

configured with:

configure
    --prefix=/usr \
    --build=x86_64-pc-linux-gnu \
    --host=i686-gnu \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --datadir=/usr/share \
    --sysconfdir=/etc \
    --localstatedir=/var/lib \
    --datarootdir=/usr/share \
    --disable-dependency-tracking \
    --disable-silent-rules \
    --disable-static \
    --docdir=/usr/share/doc/alsa-lib-1.2.16.1 \
    --htmldir=/usr/share/doc/alsa-lib-1.2.16.1/html \
    --with-sysroot=/usr/i686-gnu \
    --libdir=/usr/lib \
    --disable-maintainer-mode \
    --disable-resmgr \
    --enable-aload \
    --enable-rawmidi \
    --enable-seq \
    --enable-shared \
    --enable-thread-safety \
    --disable-python \
    --without-debug
Ngôn ngữ chính
C
Star
501
Fork
227
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alsa-project/alsa-lib

Tất cả issue của alsa-project/alsa-lib

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.