Skip to content

Commit cd70ee3

Browse files
authored
db.pg: improve support on OpenBSD (#26316)
1 parent dc96eb9 commit cd70ee3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎vlib/db/pg/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ brew services start postgresql
3939
gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config
4040
```
4141

42-
## Installing libpq-dev or its equivalent for your OS:
42+
## Installing libpq-dev or its equivalent for your OS
4343

4444
**Ubuntu/Debian**: `sudo apt install libpq-dev`
4545

@@ -49,6 +49,8 @@ gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin
4949

5050
**ArchLinux**: `pacman -S postgresql-libs`
5151

52+
**OpenBSD**: `pkg_add postgresql-client`
53+
5254
**Windows**:
5355

5456
```

‎vlib/db/pg/pg.c.v‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ $if $pkgconfig('libpq') {
3131

3232
#flag freebsd -I/usr/local/include
3333
#flag freebsd -L/usr/local/lib
34+
35+
#flag openbsd -I/usr/local/include/postgresql
36+
#flag openbsd -L/usr/local/lib
3437
}
3538

3639
$if cross_compile ? && linux {

0 commit comments

Comments
 (0)