Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正 windows build fail 問題 #68

Conversation

y2468101216
Copy link
Contributor

👏 解決掉的 issue / Resolved Issues

📝 相關的 issue / Related Issues

⛏ 變更內容 / Details of Changes

增加了 windows build 的支援。

@@ -22,3 +26,7 @@ func shmdt(shmaddr uintptr) (int, error) {
func shmctl(shmid int, cmd int, buf *ShmidDs) (int, error) {
return 0, fmt.Errorf("windows do not implement shmctl")
}

func ShmSegsz(shmid int, cmd int, buf *ShmidDs) (int, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這個應該可以不用加?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

對,我改一下

)

func openMmap(fd int, size int) ([]byte, error) {
return nil, fmt.Errorf("windows do not implement shmget")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return nil, fmt.Errorf("windows do not implement shmget")
return nil, fmt.Errorf("TODO: implement open mmap")

}

func closeMmap(buf []byte) error {
return fmt.Errorf("windows do not implement shmget")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return fmt.Errorf("windows do not implement shmget")
return fmt.Errorf("TODO: implement close mmap")

Copy link
Member

@PichuChen PichuChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PichuChen PichuChen merged commit 81206a2 into Ptt-official-app:development Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] 0.3版 windows build fail
2 participants