Skip to content

Commit d76e580

Browse files
committed
secretservice: use go build constraint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent fd555e8 commit d76e580

5 files changed

Lines changed: 11 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build linux && cgo
2+
// +build linux,cgo
3+
14
package main
25

36
import (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <string.h>
22
#include <stdlib.h>
3-
#include "secretservice_linux.h"
3+
#include "secretservice.h"
44

55
const SecretSchema *docker_get_schema(void)
66
{
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
//go:build linux && cgo
2+
// +build linux,cgo
3+
14
package secretservice
25

36
/*
47
#cgo pkg-config: libsecret-1
58
6-
#include "secretservice_linux.h"
9+
#include "secretservice.h"
710
#include <stdlib.h>
811
*/
912
import "C"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build linux && cgo
2+
// +build linux,cgo
3+
14
package secretservice
25

36
import (

0 commit comments

Comments
 (0)