-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add option to build websockets #2693
Conversation
daemon/repo-mgr.c
Outdated
@@ -6640,7 +6640,7 @@ seaf_repo_manager_del_repo (SeafRepoManager *mgr, | |||
|
|||
pthread_rwlock_unlock (&mgr->priv->lock); | |||
|
|||
#if defined WIN32 || defined __APPLE__ | |||
#ifdef COMPILE_WS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样改的话会影响 windows 和 mac 上面的条件编译吧。应该把 COMPILE_WS 改为 COMPILE_LINUX_WS 然后条件编译改为 if defined WIN32 || defined APPLE || defined COMPILE_LINUX_WS。
if COMPILE_LINUX_WS | ||
ws_src = notif-mgr.c | ||
endif | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里多了一个 endif?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里没多,在非MACOS的条件下,判断一下是否有COMPILE_LINUX_WS宏
daemon/repo-mgr.c
Outdated
@@ -6640,7 +6640,7 @@ seaf_repo_manager_del_repo (SeafRepoManager *mgr, | |||
|
|||
pthread_rwlock_unlock (&mgr->priv->lock); | |||
|
|||
#if defined WIN32 || defined __APPLE__ | |||
#if defined WIN32 || defined APPLE || defined COMPILE_LINUX_WS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么从 APPLE 改为 APPLE 呢?
No description provided.